summaryrefslogtreecommitdiff
path: root/src/testdir/test_normal.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-09-04 14:34:28 +0200
committerBram Moolenaar <Bram@vim.org>2016-09-04 14:34:28 +0200
commitbc54f3f3fed4dc3556df8c46cee6739d211b0eb2 (patch)
tree8cad3ff909debe41bde01b8118e307dc10c77299 /src/testdir/test_normal.vim
parentdac1947bb366ef43cd6da95acc730554e76d8b84 (diff)
downloadvim-git-bc54f3f3fed4dc3556df8c46cee6739d211b0eb2.tar.gz
patch 7.4.2322v7.4.2322
Problem: Access memory beyond the end of the line. (Dominique Pelle) Solution: Adjust the cursor column.
Diffstat (limited to 'src/testdir/test_normal.vim')
-rw-r--r--src/testdir/test_normal.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_normal.vim b/src/testdir/test_normal.vim
index ff6710218..98cb7754b 100644
--- a/src/testdir/test_normal.vim
+++ b/src/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()