summaryrefslogtreecommitdiffstats
path: root/src/undo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/undo.c b/src/undo.c
index 362b317e77..34e1f400d7 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -404,6 +404,12 @@ u_savecommon(top, bot, newbot)
}
for (i = 0, lnum = top + 1; i < size; ++i)
{
+ fast_breakcheck();
+ if (got_int)
+ {
+ u_freeentry(uep, i);
+ return FAIL;
+ }
if ((uep->ue_array[i] = u_save_line(lnum++)) == NULL)
{
u_freeentry(uep, i);