mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 9.0.1251: checking returned value of ga_grow() is inconsistent
Problem: Checking returned value of ga_grow() is inconsistent. Solution: Check for FAIL instaed of "not OK". (Yegappan Lakshmanan, closes #11897)
This commit is contained in:
committed by
Bram Moolenaar
parent
8dbab1d8ce
commit
fadc02a2a5
@@ -3890,7 +3890,7 @@ getcmdkeycmd(
|
||||
got_int = FALSE;
|
||||
while (c1 != NUL && !aborted)
|
||||
{
|
||||
if (ga_grow(&line_ga, 32) != OK)
|
||||
if (ga_grow(&line_ga, 32) == FAIL)
|
||||
{
|
||||
aborted = TRUE;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user