diff --git a/pythonx/UltiSnips/_vim.py b/pythonx/UltiSnips/_vim.py index b9afc38..39f5cc6 100644 --- a/pythonx/UltiSnips/_vim.py +++ b/pythonx/UltiSnips/_vim.py @@ -49,8 +49,8 @@ class VimBuffer(object): @property def number(self): # pylint:disable=no-self-use - """The bufnr() of this buffer.""" - return int(eval("bufnr('%')")) + """The bufnr() of the current buffer.""" + return vim.current.buffer.number @property def cursor(self): # pylint:disable=no-self-use