From 81e9f05e3a1eac547813b7d80bf7417f38be8346 Mon Sep 17 00:00:00 2001 From: Jakob Schnitzer Date: Mon, 21 Nov 2016 10:21:57 +0100 Subject: deoplete: use b:beancount_root --- rplugin/python3/deoplete/sources/beancount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rplugin/python3/deoplete') 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 = [] -- cgit v1.2.3-2-gb3c3