Fix: Unmatched token incorrectly ignored in right-justification mode

This commit is contained in:
Junegunn Choi
2013-08-16 09:37:04 +09:00
parent d4277a0298
commit b6625f6d2b

View File

@@ -256,7 +256,7 @@ function! s:do_align(just, all_tokens, all_delims, fl, ll, fc, lc, pattern, nth,
continue
" Do not ignore on right-justification mode, except when the end of the
" line is highlighted as ignored syntax (e.g. comments or strings).
elseif s:highlighted_as(line, a:fc + len(token) - 1, a:ignores)
elseif s:highlighted_as(line, a:fc + len(prefix.token) - 1, a:ignores)
continue
endif
endif