aboutsummaryrefslogtreecommitdiffstats
path: root/rplugin/python3/deoplete
diff options
context:
space:
mode:
Diffstat (limited to 'rplugin/python3/deoplete')
-rw-r--r--rplugin/python3/deoplete/sources/beancount.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rplugin/python3/deoplete/sources/beancount.py b/rplugin/python3/deoplete/sources/beancount.py
index 4618105..f595a54 100644
--- a/rplugin/python3/deoplete/sources/beancount.py
+++ b/rplugin/python3/deoplete/sources/beancount.py
@@ -54,7 +54,7 @@ class Source(Base):
payees = set()
tags = set()
if HAS_BEANCOUNT:
- entries, _, _ = load_file(self.vim.eval("expand('%')"))
+ entries, _, _ = load_file(self.vim.eval("beancount#get_root()"))
else:
entries = []