MCPcopy
hub / github.com/ycm-core/YouCompleteMe / _GetNumNonVisibleFiles

Function _GetNumNonVisibleFiles

python/ycm/vimsupport.py:944–949  ·  view source on GitHub ↗

Returns the number of file in the iterable list of files |file_list| which are not curerntly open in visible windows

( file_list )

Source from the content-addressed store, hash-verified

942
943
944def _GetNumNonVisibleFiles( file_list ):
945 """Returns the number of file in the iterable list of files |file_list| which
946 are not curerntly open in visible windows"""
947 return len(
948 [ f for f in file_list
949 if not BufferIsVisible( GetBufferNumberForFilename( f ) ) ] )
950
951
952def _OpenFileInSplitIfNeeded( filepath ):

Callers 1

ReplaceChunksFunction · 0.85

Calls 2

BufferIsVisibleFunction · 0.85

Tested by

no test coverage detected