summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index 72e20ba7f..2ba06e20f 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -7452,10 +7452,13 @@ screenalloc(clear)
{
outofmem = TRUE;
#ifdef FEAT_WINDOWS
- break;
+ goto give_up;
#endif
}
}
+#ifdef FEAT_WINDOWS
+give_up:
+#endif
#ifdef FEAT_MBYTE
for (i = 0; i < p_mco; ++i)