fixed ghost text indenting when expandtab is on
This commit is contained in:
parent
66a4cd1b60
commit
b81721b523
1 changed files with 1 additions and 3 deletions
|
@ -112,9 +112,7 @@ function! s:get_indent(str)
|
|||
let l:count = 0
|
||||
for i in range(len(a:str))
|
||||
if a:str[i] == "\t"
|
||||
let l:count += &shiftwidth - 1
|
||||
elseif a:str[i] == " "
|
||||
let l:count += 1
|
||||
let l:count += &tabstop - 1
|
||||
else
|
||||
break
|
||||
endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue