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

Function GetBufferChangedTick

python/ycm/vimsupport.py:180–186  ·  view source on GitHub ↗
( bufnr )

Source from the content-addressed store, hash-verified

178
179
180def GetBufferChangedTick( bufnr ):
181 try:
182 return GetIntValue( f'getbufvar({ bufnr }, "changedtick")' )
183 except ValueError:
184 # For some reason, occasionally changedtick returns '' and causes an error.
185 # In that case, just return 0 rather than spamming an error to the console.
186 return 0
187
188
189# Returns a range covering the earliest and latest lines visible in the current

Callers

nothing calls this directly

Calls 1

GetIntValueFunction · 0.85

Tested by

no test coverage detected