Prechádzať zdrojové kódy

Don't use ?? expression as it's too new

Ben Jackson 2 rokov pred
rodič
commit
f32d210206
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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") ?? 0' )
+  return GetIntValue( f'getbufvar({ bufnr }, "changedtick")' ) or 0
 
 
 # Returns a range covering the earliest and latest lines visible in the current