vim. avoid misinterpretion of 1 char words

This commit is contained in:
Johann Klähn 2010-09-12 14:18:06 +02:00
parent 1be3a79385
commit 3a679a695d

View file

@ -367,7 +367,7 @@ function! s:transaction.from_lnum(lnum) dict "{{{2
let trans['date'] = part
elseif ! has_key(trans, 'code') && part =~ '^([^)]*)$'
let trans['code'] = part[1:-2]
elseif ! has_key(trans, 'state') && part =~ '^.$'
elseif ! has_key(trans, 'state') && part =~ '^[[:punct:]]$'
" the first character by itself is assumed to be the state of the transaction.
let trans['state'] = part
else