aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-06-30 20:16:00 +0800
committerGitHub <noreply@github.com>2022-06-30 20:16:00 +0800
commit69cd0ba27bfc595b643cde0d9f1156ee144dee4a (patch)
tree6d135def3c56aedbc278a30941fb5b8ec6b9c23b /src/nvim/testdir
parent37af46bb4c351c69376f9c2947b7c3862014ee41 (diff)
downloadrneovim-69cd0ba27bfc595b643cde0d9f1156ee144dee4a.tar.gz
rneovim-69cd0ba27bfc595b643cde0d9f1156ee144dee4a.tar.bz2
rneovim-69cd0ba27bfc595b643cde0d9f1156ee144dee4a.zip
vim-patch:9.0.0011: reading beyond the end of the line with put command (#19166)
Problem: Reading beyond the end of the line with put command. Solution: Adjust the end mark position. https://github.com/vim/vim/commit/d25f003342aca9889067f2e839963dfeccf1fe05
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_put.vim12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_put.vim b/src/nvim/testdir/test_put.vim
index ffdaa81e0b..a46ef8b3fe 100644
--- a/src/nvim/testdir/test_put.vim
+++ b/src/nvim/testdir/test_put.vim
@@ -213,5 +213,17 @@ func Test_put_empty_register()
bwipe!
endfunc
+" this was putting the end mark after the end of the line
+func Test_put_visual_mode()
+ edit! SomeNewBuffer
+ set selection=exclusive
+ exe "norm o\t"
+ m0
+ sil! norm  p p
+
+ bwipe!
+ set selection&
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab