Procházet zdrojové kódy

sometimes changedtick doesn't return a value

Ben Jackson před 2 roky
rodič
revize
060c5641db
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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")' )
+  return GetIntValue( f'getbufvar({ bufnr }, "changedtick") ?? 0' )
 
 
 # Returns a range covering the earliest and latest lines visible in the current