From 5b6d404b4d90813254c24e1c518b2c5a21e5680c Mon Sep 17 00:00:00 2001
From: Ben Jackson <puremourning@gmail.com>
Date: Mon, 16 Jan 2023 19:09:57 +0000
Subject: [PATCH] Actually fix the problem where changedtick is ''

---
 python/ycm/vimsupport.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/ycm/vimsupport.py b/python/ycm/vimsupport.py
index 56de1aa8..afb41306 100644
--- a/python/ycm/vimsupport.py
+++ b/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
-- 
2.39.1

