diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-03-14 06:23:05 -0400 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2019-03-14 11:23:05 +0100 |
| commit | cbe4377fde315123fea9928371bd2a62f32d90e4 (patch) | |
| tree | 0340b11819e268b74955327608556f58ca162a83 /src/nvim/testdir | |
| parent | 907b4803500e3321b0996807d75d85646a6720e2 (diff) | |
| download | rneovim-cbe4377fde315123fea9928371bd2a62f32d90e4.tar.gz rneovim-cbe4377fde315123fea9928371bd2a62f32d90e4.tar.bz2 rneovim-cbe4377fde315123fea9928371bd2a62f32d90e4.zip | |
vim-patch:8.1.0671: cursor in wrong column after auto-format #9729
Problem: Cursor in the wrong column after auto-formatting.
Solution: Check for deleting more spaces than adding. (closes vim/vim#3748)
https://github.com/vim/vim/commit/e1e714ef0d1f4bb8b1712795e9106e3b4ff4c7bd
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_textformat.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_textformat.vim b/src/nvim/testdir/test_textformat.vim index 377f761b74..0f8e09532b 100644 --- a/src/nvim/testdir/test_textformat.vim +++ b/src/nvim/testdir/test_textformat.vim @@ -450,5 +450,16 @@ func Test_format_undo() \ ], getline(1, '$')) unmap gg + set tw& enew! endfunc + +func Test_format_list_auto() + new + call setline(1, ['1. abc', '2. def', '3. ghi']) + set fo=tan ai bs=2 + call feedkeys("3G0lli\<BS>\<BS>x\<Esc>", 'tx') + call assert_equal('2. defx ghi', getline(2)) + bwipe! + set fo& ai& bs& +endfunc |