diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-10-16 08:56:26 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-16 08:56:26 +0800 |
commit | 0b71960ab1bcbcc42f2d6abba4c72cd6ac3c840b (patch) | |
tree | ba17ea551188576f660573127e34275f87dc54b0 /src/nvim/testdir/test_lispindent.vim | |
parent | bc798dfd8cea9a5f93461e05dcb8409b6d96afc0 (diff) | |
parent | c8fbf39d474b1140bee10edbcf36305ea49bf863 (diff) | |
download | rneovim-0b71960ab1bcbcc42f2d6abba4c72cd6ac3c840b.tar.gz rneovim-0b71960ab1bcbcc42f2d6abba4c72cd6ac3c840b.tar.bz2 rneovim-0b71960ab1bcbcc42f2d6abba4c72cd6ac3c840b.zip |
Merge pull request #20677 from zeertzjq/vim-9.0.0761
vim-patch:9.0.{0761,0762,0764}: 'lispoptions'
Diffstat (limited to 'src/nvim/testdir/test_lispindent.vim')
-rw-r--r-- | src/nvim/testdir/test_lispindent.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_lispindent.vim b/src/nvim/testdir/test_lispindent.vim index 8987f67a80..2d6060bba3 100644 --- a/src/nvim/testdir/test_lispindent.vim +++ b/src/nvim/testdir/test_lispindent.vim @@ -97,8 +97,23 @@ func Test_lispindent_with_indentexpr() exe "normal a(x\<CR>1\<CR>2)\<Esc>" let expected = ['(x', ' 1', ' 2)'] call assert_equal(expected, getline(1, 3)) + " with Lisp indenting the first line is not indented normal 1G=G call assert_equal(expected, getline(1, 3)) + + %del + setl lispoptions=expr:1 indentexpr=5 + exe "normal a(x\<CR>1\<CR>2)\<Esc>" + let expected_expr = ['(x', ' 1', ' 2)'] + call assert_equal(expected_expr, getline(1, 3)) + normal 2G2<<=G + call assert_equal(expected_expr, getline(1, 3)) + + setl lispoptions=expr:0 + " with Lisp indenting the first line is not indented + normal 1G3<<=G + call assert_equal(expected, getline(1, 3)) + bwipe! endfunc |