Fix #20 - Alignment with tabs inserting spaces

This commit is contained in:
Junegunn Choi
2013-11-20 07:27:39 +09:00
parent ea1ea51ef1
commit 3921d0bab3
3 changed files with 82 additions and 2 deletions

View File

@@ -546,7 +546,7 @@ function! s:do_align(todo, modes, all_tokens, all_delims, fl, ll, fc, lc, nth, r
" Adjust indentation of the lines starting with a delimiter
let lpad = ''
if nth == 0
let ipad = repeat(' ', min_indent - len(token.ml))
let ipad = repeat(' ', min_indent - s:strwidth(token.ml))
if mode ==? 'l'
let token = ipad . token
else