mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 7.4.2322
Problem: Access memory beyond the end of the line. (Dominique Pelle) Solution: Adjust the cursor column.
This commit is contained in:
parent
dac1947bb3
commit
bc54f3f3fe
@ -2479,6 +2479,7 @@ onepage(int dir, long count)
|
|||||||
foldAdjustCursor();
|
foldAdjustCursor();
|
||||||
#endif
|
#endif
|
||||||
cursor_correct();
|
cursor_correct();
|
||||||
|
check_cursor_col();
|
||||||
if (retval == OK)
|
if (retval == OK)
|
||||||
beginline(BL_SOL | BL_FIX);
|
beginline(BL_SOL | BL_FIX);
|
||||||
curwin->w_valid &= ~(VALID_WCOL|VALID_WROW|VALID_VIRTCOL);
|
curwin->w_valid &= ~(VALID_WCOL|VALID_WROW|VALID_VIRTCOL);
|
||||||
|
@ -398,6 +398,15 @@ func! Test_normal14_page()
|
|||||||
bw!
|
bw!
|
||||||
endfu
|
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()
|
func! Test_normal15_z_scroll_vert()
|
||||||
" basic test for z commands that scroll the window
|
" basic test for z commands that scroll the window
|
||||||
call Setup_NewWindow()
|
call Setup_NewWindow()
|
||||||
|
@ -763,6 +763,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2322,
|
||||||
/**/
|
/**/
|
||||||
2321,
|
2321,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user