fixed ghost text indenting when expandtab is on

This commit is contained in:
Michael Coppola 2024-10-22 10:35:17 -04:00
parent 66a4cd1b60
commit b81721b523

View file

@ -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