summaryrefslogtreecommitdiffstats
path: root/indent/svelte.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2021-12-21 14:41:23 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2021-12-21 14:41:23 +0100
commit87a26c5bf169bafbee837e2323f24cfb07e35250 (patch)
tree326eb21bb10c3d3633b83263d21c85c98f92a67e /indent/svelte.vim
parent918610d427503c5c7b380eae4a954bd8cb427db5 (diff)
downloadvim-polyglot-87a26c5bf169bafbee837e2323f24cfb07e35250.tar.gz
vim-polyglot-87a26c5bf169bafbee837e2323f24cfb07e35250.zip
Update
Diffstat (limited to 'indent/svelte.vim')
-rw-r--r--indent/svelte.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/indent/svelte.vim b/indent/svelte.vim
index 047d1479..147df65b 100644
--- a/indent/svelte.vim
+++ b/indent/svelte.vim
@@ -183,7 +183,7 @@ function! GetSvelteIndent()
call s:Log('... or current line is pug template tag')
let ind = 0
elseif s:has_init_indent
- if s:SynSvelteScriptOrStyle(cursyn) && ind < 1
+ if s:SynSvelteScriptOrStyle(cursyn) && ind == 0
call s:Log('add initial indent')
let ind = &sw
endif