aboutsummaryrefslogtreecommitdiff
path: root/test/old/testdir/test_indent.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-07-17 10:19:31 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-07-18 06:18:03 +0800
commit457ab65ff3f7a7d3eecb45d4f3b48ab8a0295e52 (patch)
tree7bfcb7a0cc38e6a2473f8c21ce58d4dd6b828276 /test/old/testdir/test_indent.vim
parentf17d81933067c5356f1c8419218d61aaaec9046c (diff)
downloadrneovim-457ab65ff3f7a7d3eecb45d4f3b48ab8a0295e52.tar.gz
rneovim-457ab65ff3f7a7d3eecb45d4f3b48ab8a0295e52.tar.bz2
rneovim-457ab65ff3f7a7d3eecb45d4f3b48ab8a0295e52.zip
vim-patch:9.0.1257: code style is not check in test scripts
Problem: Code style is not check in test scripts. Solution: Add basic code style check for test files. https://github.com/vim/vim/commit/94722c510745a0cfd494c51625a514b92dd2bfb2 Use Test_test_files() from latest Vim. Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test/old/testdir/test_indent.vim')
-rw-r--r--test/old/testdir/test_indent.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/old/testdir/test_indent.vim b/test/old/testdir/test_indent.vim
index 3b5b643177..dcacc11663 100644
--- a/test/old/testdir/test_indent.vim
+++ b/test/old/testdir/test_indent.vim
@@ -176,7 +176,7 @@ func Test_modeline_indent_expr()
endfunc
func Test_indent_func_with_gq()
-
+
function GetTeXIndent()
" Sample indent expression for TeX files
let lnum = prevnonblank(v:lnum - 1)
@@ -187,7 +187,7 @@ func Test_indent_func_with_gq()
let line = getline(lnum)
let ind = indent(lnum)
" Add a 'shiftwidth' after beginning of environments.
- if line =~ '\\begin{center}'
+ if line =~ '\\begin{center}'
let ind = ind + shiftwidth()
endif
return ind
@@ -249,7 +249,7 @@ func Test_indent_func_with_gq()
bwipe!
delmark ab
- delfunction GetTeXIndent
+ delfunction GetTeXIndent
endfu
func Test_formatting_keeps_first_line_indent()