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

Function GetWindowsForBufferNumber

python/ycm/vimsupport.py:415–419  ·  view source on GitHub ↗

Return the list of windows containing the buffer with number |buffer_number| for the current tab page.

( buffer_number )

Source from the content-addressed store, hash-verified

413
414
415def GetWindowsForBufferNumber( buffer_number ):
416 """Return the list of windows containing the buffer with number
417 |buffer_number| for the current tab page."""
418 return [ window for window in vim.windows
419 if window.buffer.number == buffer_number ]
420
421
422def SetLocationListsForBuffer( buffer_number,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected