Left-align delimiters of different lengths when stick_to_left is set

This commit is contained in:
Junegunn Choi
2013-08-03 01:09:21 +09:00
parent 6d841110af
commit 057be51067

View File

@@ -185,7 +185,12 @@ function! s:do_align(just, all_tokens, fl, ll, fc, lc, pattern, nth, ml, mr, sti
let tokens[nth] = token
" Pad the delimiter
let delim = repeat(' ', max_delim_len - s:strwidth(delim)). delim
let dpad = repeat(' ', max_delim_len - s:strwidth(delim))
if a:stick_to_left
let rpad = rpad . dpad
else
let delim = dpad . delim
endif
" Before and after the range (for blockwise visual mode)
let cline = getline(line)