From b81721b523149b7c9c6a9f4afccfb0aad86554a4 Mon Sep 17 00:00:00 2001 From: Michael Coppola Date: Tue, 22 Oct 2024 10:35:17 -0400 Subject: [PATCH] fixed ghost text indenting when expandtab is on --- examples/llama.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/llama.vim b/examples/llama.vim index deaa73fd6..2fbe43e02 100644 --- a/examples/llama.vim +++ b/examples/llama.vim @@ -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