MCPcopy Index your code
hub / github.com/ycm-core/YouCompleteMe / VisibleRangeOfBufferOverlaps

Function VisibleRangeOfBufferOverlaps

python/ycm/vimsupport.py:244–254  ·  view source on GitHub ↗
( bufnr, expanded_range )

Source from the content-addressed store, hash-verified

242
243
244def 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
257def CaptureVimCommand( command ):

Callers

nothing calls this directly

Calls 1

RangeVisibleInBufferFunction · 0.85

Tested by

no test coverage detected