fix to process unmatched tokens in right-justficiation mode

This commit is contained in:
Junegunn Choi
2013-05-06 00:28:31 +09:00
parent 078e8b08fd
commit 8591c888bf
3 changed files with 4 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ function! s:do_align(just, fl, ll, fc, lc, pattern, nth, ml, mr, stick_to_left,
let suffix = join(tokens[nth + 1: -1], '')
if match(last, pattern.'$') == -1
if !exists("g:easy_align_ignore_unmatched") || g:easy_align_ignore_unmatched
if a:just == 0 && (!exists("g:easy_align_ignore_unmatched") || g:easy_align_ignore_unmatched)
continue
else
let delim = ''