Explorar o código

Actually fix the problem where changedtick is ''

Ben Jackson %!s(int64=2) %!d(string=hai) anos
pai
achega
5b6d404b4d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      python/ycm/vimsupport.py

+ 1 - 1
python/ycm/vimsupport.py

@@ -182,7 +182,7 @@ def GetCurrentBufferNumber():
 
 
 def GetBufferChangedTick( bufnr ):
-  return GetIntValue( f'getbufvar({ bufnr }, "changedtick")' ) or 0
+  return GetIntValue( f'getbufvar({ bufnr }, "changedtick")' or 0 )
 
 
 # Returns a range covering the earliest and latest lines visible in the current