Skip to content

Commit b81721b

Browse files
committed
fixed ghost text indenting when expandtab is on
1 parent 66a4cd1 commit b81721b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/llama.vim

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ function! s:get_indent(str)
112112
let l:count = 0
113113
for i in range(len(a:str))
114114
if a:str[i] == "\t"
115-
let l:count += &shiftwidth - 1
116-
elseif a:str[i] == " "
117-
let l:count += 1
115+
let l:count += &tabstop - 1
118116
else
119117
break
120118
endif

0 commit comments

Comments
 (0)