( bufnr, expanded_range )
| 242 | |
| 243 | |
| 244 | def VisibleRangeOfBufferOverlaps( bufnr, expanded_range ): |
| 245 | visible_range = RangeVisibleInBuffer( bufnr, 0 ) |
| 246 | # As above, we ignore horizontal scroll and only check lines |
| 247 | return ( |
| 248 | expanded_range is not None and |
| 249 | visible_range is not None and |
| 250 | visible_range[ 'start' ][ 'line_num' ] |
| 251 | >= expanded_range[ 'start' ][ 'line_num' ] and |
| 252 | visible_range[ 'end' ][ 'line_num' ] |
| 253 | <= expanded_range[ 'end' ][ 'line_num' ] |
| 254 | ) |
| 255 | |
| 256 | |
| 257 | def CaptureVimCommand( command ): |
nothing calls this directly
no test coverage detected