mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.1.1509: cmdline_row can become negative, causing a crash
Problem: Cmdline_row can become negative, causing a crash. Solution: Make sure cmdline_row does not become negagive. (closes #4102)
This commit is contained in:
@@ -1447,9 +1447,9 @@ prompt_for_number(int *mouse_used)
|
|||||||
i = get_number(TRUE, mouse_used);
|
i = get_number(TRUE, mouse_used);
|
||||||
if (KeyTyped)
|
if (KeyTyped)
|
||||||
{
|
{
|
||||||
/* don't call wait_return() now */
|
// don't call wait_return() now
|
||||||
/* msg_putchar('\n'); */
|
if (msg_row > 0)
|
||||||
cmdline_row = msg_row - 1;
|
cmdline_row = msg_row - 1;
|
||||||
need_wait_return = FALSE;
|
need_wait_return = FALSE;
|
||||||
msg_didany = FALSE;
|
msg_didany = FALSE;
|
||||||
msg_didout = FALSE;
|
msg_didout = FALSE;
|
||||||
|
@@ -777,6 +777,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 */
|
||||||
|
/**/
|
||||||
|
1509,
|
||||||
/**/
|
/**/
|
||||||
1508,
|
1508,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user