From e45001163eede99425c33eec112605b377e61d8f Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 10 Apr 2000 11:44:37 +0000 Subject: [PATCH] (compute_motion): Set immediate_quit. --- src/indent.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/indent.c b/src/indent.c index 5d2dbe5ab3..486589a046 100644 --- a/src/indent.c +++ b/src/indent.c @@ -1097,7 +1097,11 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width, run cache, because that's based on the buffer's display table. */ width_table = 0; - if (tab_width <= 0 || tab_width > 1000) tab_width = 8; + if (tab_width <= 0 || tab_width > 1000) + tab_width = 8; + + immediate_quit = 1; + QUIT; pos = prev_pos = from; pos_byte = prev_pos_byte = CHAR_TO_BYTE (from); @@ -1540,6 +1544,7 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width, /* Nonzero if have just continued a line */ val_compute_motion.contin = (contin_hpos && prev_hpos == 0); + immediate_quit = 0; return &val_compute_motion; } -- 2.39.2