From fadc02a2a57755fa1342b1b44c2ceab3046125fc Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Fri, 27 Jan 2023 21:03:12 +0000 Subject: 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) --- src/getchar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/getchar.c') diff --git a/src/getchar.c b/src/getchar.c index f4dce0222a..2d30d4fb16 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -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; -- cgit v1.2.3