Skip to content

Commit af0c6cf

Browse files
authored
Fall back to default indentation
the `indent()` just returns the number of whitespace columns at the start of the line, and that on the current line is redundant and doesn't do anything. the default js indent file just turns on cindent so the `cindent()` function is the equivalent.
1 parent e65465f commit af0c6cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

after/indent/jsx.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ fu! GetJsxIndent()
8787
" For pangloss/vim-javascript.
8888
let ind = GetJavascriptIndent()
8989
else
90-
let ind = indent(v:lnum)
90+
let ind = cindent(v:lnum)
9191
endif
9292
endif
9393

0 commit comments

Comments
 (0)