summaryrefslogtreecommitdiffstats
path: root/src/getchar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/getchar.c')
-rw-r--r--src/getchar.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/getchar.c b/src/getchar.c
index 3d73a6c7b6..165a6a3ad7 100644
--- a/src/getchar.c
+++ b/src/getchar.c
@@ -3645,7 +3645,11 @@ getcmdkeycmd(
got_int = FALSE;
while (c1 != NUL && !aborted)
{
- ga_grow(&line_ga, 32);
+ if (ga_grow(&line_ga, 32) != OK)
+ {
+ aborted = TRUE;
+ break;
+ }
if (vgetorpeek(FALSE) == NUL)
{