summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann Klähn <kljohann@gmail.com>2010-11-22 21:17:40 +0100
committerJohn Wiegley <johnw@newartisans.com>2011-01-04 16:30:04 -0500
commit67aadeb80894d7683f5e2e1b2bf29520eb42da41 (patch)
tree9b26eb5be03de0805e7582ff4877ed55f7245dd4
parentb52011c7b2dbfcd82b3bd9e8efaff405bd475274 (diff)
parent2c6031a2333fe258dddcd169fd54a33b8a3ce957 (diff)
downloadfork-ledger-67aadeb80894d7683f5e2e1b2bf29520eb42da41.tar.gz
fork-ledger-67aadeb80894d7683f5e2e1b2bf29520eb42da41.tar.bz2
fork-ledger-67aadeb80894d7683f5e2e1b2bf29520eb42da41.zip
vim. fix unset completion type
-rw-r--r--contrib/vim/ftplugin/ledger.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/vim/ftplugin/ledger.vim b/contrib/vim/ftplugin/ledger.vim
index 13602e5d..d1c8e1a9 100644
--- a/contrib/vim/ftplugin/ledger.vim
+++ b/contrib/vim/ftplugin/ledger.vim
@@ -138,6 +138,7 @@ function! LedgerComplete(findstart, base) "{{{1
let lnum = line('.')
let line = getline('.')
let lastcol = col('.') - 2
+ let b:compl_context = ''
if line =~ '^\s\+[^[:blank:];]' "{{{2 (account)
let b:compl_context = 'account'
if matchend(line, '^\s\+\%(\S \S\|\S\)\+') <= lastcol