aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_normal.vim
diff options
context:
space:
mode:
authorraichoo <raichoo@googlemail.com>2017-03-11 10:27:15 +0100
committerraichoo <raichoo@googlemail.com>2017-03-19 21:14:11 +0100
commit42caeccce6e50fa3b8b25fe3076ac2fbd555b152 (patch)
tree245e091d2b751f92f5da73bd3ae857bb55aeba39 /src/nvim/testdir/test_normal.vim
parentafd8eacb4e0268d6ce4dbcca9f188fc8f660cb3c (diff)
downloadrneovim-42caeccce6e50fa3b8b25fe3076ac2fbd555b152.tar.gz
rneovim-42caeccce6e50fa3b8b25fe3076ac2fbd555b152.tar.bz2
rneovim-42caeccce6e50fa3b8b25fe3076ac2fbd555b152.zip
vim-patch:7.4.2322
Problem: Access memory beyond the end of the line. (Dominique Pelle) Solution: Adjust the cursor column. https://github.com/vim/vim/commit/bc54f3f3fed4dc3556df8c46cee6739d211b0eb2
Diffstat (limited to 'src/nvim/testdir/test_normal.vim')
-rw-r--r--src/nvim/testdir/test_normal.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_normal.vim b/src/nvim/testdir/test_normal.vim
index ff6710218d..98cb7754bb 100644
--- a/src/nvim/testdir/test_normal.vim
+++ b/src/nvim/testdir/test_normal.vim
@@ -398,6 +398,15 @@ func! Test_normal14_page()
bw!
endfu
+func! Test_normal14_page_eol()
+ 10new
+ norm oxxxxxxx
+ exe "norm 2\<c-f>"
+ " check with valgrind that cursor is put back in column 1
+ exe "norm 2\<c-b>"
+ bw!
+endfunc
+
func! Test_normal15_z_scroll_vert()
" basic test for z commands that scroll the window
call Setup_NewWindow()