aboutsummaryrefslogtreecommitdiffstats
path: root/autoload/beancount.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/beancount.vim')
-rw-r--r--autoload/beancount.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/beancount.vim b/autoload/beancount.vim
index aea0a42..1f067b5 100644
--- a/autoload/beancount.vim
+++ b/autoload/beancount.vim
@@ -72,9 +72,9 @@ function! beancount#complete(findstart, base)
endif
endif
- let l:partial_line = strpart(getline("."), 0, getpos(".")[2])
+ let l:partial_line = strpart(getline("."), 0, getpos(".")[2]-1)
" Match directive types
- if l:partial_line =~# '^\d\d\d\d\(-\|/\)\d\d\1\d\d \S*$'
+ if l:partial_line =~# '^\d\d\d\d\(-\|/\)\d\d\1\d\d $'
return beancount#complete_basic(s:directives, a:base, '')
endif