summaryrefslogtreecommitdiffstats
path: root/indent/svelte.vim
diff options
context:
space:
mode:
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