aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_textformat.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-02 06:57:49 +0800
committerGitHub <noreply@github.com>2022-08-02 06:57:49 +0800
commit9c91d5c61382639c06ca59e6cc2bfda6ba6abf18 (patch)
tree3adccf6e926d21361994e7e3b86a691bda70d0a5 /src/nvim/testdir/test_textformat.vim
parentd4b9f8186d4a73a661a407efb63fe8abca2c4e88 (diff)
parent50672e3850ddd0ddacfcdcd536922440fb719093 (diff)
downloadrneovim-9c91d5c61382639c06ca59e6cc2bfda6ba6abf18.tar.gz
rneovim-9c91d5c61382639c06ca59e6cc2bfda6ba6abf18.tar.bz2
rneovim-9c91d5c61382639c06ca59e6cc2bfda6ba6abf18.zip
Merge pull request #19617 from zeertzjq/vim-8.2.4956
vim-patch:8.2.{4899,4956,5013}
Diffstat (limited to 'src/nvim/testdir/test_textformat.vim')
-rw-r--r--src/nvim/testdir/test_textformat.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_textformat.vim b/src/nvim/testdir/test_textformat.vim
index 1d1f20d91a..0fc56083aa 100644
--- a/src/nvim/testdir/test_textformat.vim
+++ b/src/nvim/testdir/test_textformat.vim
@@ -1534,4 +1534,16 @@ func Test_autoformat_comments()
close!
endfunc
+" This was leaving the cursor after the end of a line. Complicated way to
+" have the problem show up with valgrind.
+func Test_correct_cursor_position()
+ " set encoding=iso8859
+ new
+ norm a000“0
+ sil! norm gggg0i0gw0gg
+
+ bwipe!
+ set encoding=utf8
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab