mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.1072: missing libvterm test
Problem: Missing libvterm test. Solution: Sync with libvterm revision 768.
This commit is contained in:
parent
e40fbc2ca9
commit
a0a0c4147f
@ -1844,14 +1844,14 @@ static int on_resize(int rows, int cols, void *user)
|
|||||||
state->pos.col++;
|
state->pos.col++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(state->pos.row >= rows)
|
|
||||||
state->pos.row = rows - 1;
|
|
||||||
if(state->pos.row < 0)
|
if(state->pos.row < 0)
|
||||||
state->pos.row = 0;
|
state->pos.row = 0;
|
||||||
if(state->pos.col >= cols)
|
if(state->pos.row >= rows)
|
||||||
state->pos.col = cols - 1;
|
state->pos.row = rows - 1;
|
||||||
if(state->pos.col < 0)
|
if(state->pos.col < 0)
|
||||||
state->pos.col = 0;
|
state->pos.col = 0;
|
||||||
|
if(state->pos.col >= cols)
|
||||||
|
state->pos.col = cols - 1;
|
||||||
|
|
||||||
updatecursor(state, &oldpos, 1);
|
updatecursor(state, &oldpos, 1);
|
||||||
|
|
||||||
|
@ -69,6 +69,22 @@ RESIZE 24,80
|
|||||||
?screen_chars 22,0,23,10 = "Line 25"
|
?screen_chars 22,0,23,10 = "Line 25"
|
||||||
?cursor = 23,0
|
?cursor = 23,0
|
||||||
|
|
||||||
|
!Resize shorter does not send the cursor to a negative row
|
||||||
|
# See also https://github.com/vim/vim/pull/6141
|
||||||
|
RESET
|
||||||
|
WANTSCREEN -b
|
||||||
|
RESIZE 25,80
|
||||||
|
WANTSCREEN b
|
||||||
|
PUSH "\e[24HLine 24\r\nLine 25\e[H"
|
||||||
|
?cursor = 0,0
|
||||||
|
RESIZE 20,80
|
||||||
|
sb_pushline 80 =
|
||||||
|
sb_pushline 80 =
|
||||||
|
sb_pushline 80 =
|
||||||
|
sb_pushline 80 =
|
||||||
|
sb_pushline 80 =
|
||||||
|
?cursor = 0,0
|
||||||
|
|
||||||
!Resize taller attempts to pop scrollback
|
!Resize taller attempts to pop scrollback
|
||||||
RESET
|
RESET
|
||||||
WANTSCREEN -b
|
WANTSCREEN -b
|
||||||
|
@ -754,6 +754,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 */
|
||||||
|
/**/
|
||||||
|
1072,
|
||||||
/**/
|
/**/
|
||||||
1071,
|
1071,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user