diff options
author | VVKot <volodymyr.kot.ua@gmail.com> | 2021-01-31 17:53:52 +0000 |
---|---|---|
committer | VVKot <volodymyr.kot.ua@gmail.com> | 2021-03-28 08:37:04 +0100 |
commit | 6f23291b8d3e9880536f968621cc52d180f09ddc (patch) | |
tree | f7d9db583683688326db8da3bd58247bb1ba5561 /src/nvim/testdir | |
parent | 18b73ea3c8380f5c99ae6ec6f915e0d448391677 (diff) | |
download | rneovim-6f23291b8d3e9880536f968621cc52d180f09ddc.tar.gz rneovim-6f23291b8d3e9880536f968621cc52d180f09ddc.tar.bz2 rneovim-6f23291b8d3e9880536f968621cc52d180f09ddc.zip |
vim-patch:8.1.0154: crash with "set smarttab shiftwidth=0 softtabstop=-1"
Problem: Crash with "set smarttab shiftwidth=0 softtabstop=-1".
Solution: Fall back to using 'tabstop'. (closes vim/vim#3155)
https://github.com/vim/vim/commit/c9fe5ab3b093803b6e8d03358ba16aca6b6f0db1
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_tab.vim | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_tab.vim b/src/nvim/testdir/test_tab.vim index 3be30245b9..b8e8dfe062 100644 --- a/src/nvim/testdir/test_tab.vim +++ b/src/nvim/testdir/test_tab.vim @@ -76,6 +76,15 @@ func Test_softtabstop() exe "normal A\<BS>x\<Esc>" call assert_equal("x x", getline(1)) - set sts=0 sw=0 backspace& + call setline(1, 'x') + set sts=-1 sw=0 smarttab + exe "normal I\<Tab>\<Esc>" + call assert_equal("\tx", getline(1)) + + call setline(1, 'x') + exe "normal I\<Tab>\<BS>\<Esc>" + call assert_equal("x", getline(1)) + + set sts=0 sw=0 backspace& nosmarttab bwipe! endfunc |