vim-sh-indent icon indicating copy to clipboard operation
vim-sh-indent copied to clipboard

[Wrong indent for keyword like 'do']

Open hiberabyss opened this issue 3 years ago • 1 comments

After type word like docker which have the keyword do, the indent will deleted incorrectly.

hello() {
docker
}

Maybe the keyword like do indention should be checked after newline inserted.

hiberabyss avatar Apr 24 '22 08:04 hiberabyss

It's probably this one here:

https://github.com/chrisbra/vim-sh-indent/blob/c646b1ac2662574bac53e09d702addb902cda03c/indent/sh.vim#L41

But if I remove this, then do won't be de-indented. Note sure if this is okay

chrisbra avatar Apr 24 '22 15:04 chrisbra