0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.1.1916: trying to allocate negative amount of memory closing popup

Problem:    Trying to allocate negative amount of memory when closing a popup.
Solution:   Check the rows are not out of bounds.  Don't finish a selection if
            it was never started.
This commit is contained in:
Bram Moolenaar
2019-08-24 14:16:32 +02:00
parent 1a3a89168d
commit 741ea17038
2 changed files with 8 additions and 1 deletions

View File

@@ -761,6 +761,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1916,
/**/
1915,
/**/