aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-01-29 06:05:39 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-01-29 06:05:39 +0800
commit6f04d3f3ef5eb45c224dabc64373783de9d3f721 (patch)
tree1beaf8b82c92cc517247a54afbc2ded6a14e6ca6 /src/nvim/testdir
parent436a470ef52e60e0a5c553aab53adbc216e650a1 (diff)
downloadrneovim-6f04d3f3ef5eb45c224dabc64373783de9d3f721.tar.gz
rneovim-6f04d3f3ef5eb45c224dabc64373783de9d3f721.tar.bz2
rneovim-6f04d3f3ef5eb45c224dabc64373783de9d3f721.zip
vim-patch:8.2.3581: reading character past end of line
Problem: Reading character past end of line. Solution: Correct the cursor column. https://github.com/vim/vim/commit/0b5b06cb4777d1401fdf83e7d48d287662236e7e
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_put.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_put.vim b/src/nvim/testdir/test_put.vim
index 4b708fc6a1..ed76709a56 100644
--- a/src/nvim/testdir/test_put.vim
+++ b/src/nvim/testdir/test_put.vim
@@ -138,6 +138,15 @@ func Test_p_with_count_leaves_mark_at_end()
bwipe!
endfunc
+func Test_put_above_first_line()
+ new
+ let @" = 'text'
+ silent! normal 0o00
+ 0put
+ call assert_equal('text', getline(1))
+ bwipe!
+endfunc
+
func Test_multibyte_op_end_mark()
new
call setline(1, 'ั‚ะตัั‚')