patch 7.4.1091
Problem: When making a change while need_wait_return is set there is a two
second delay.
Solution: Do not assume the ATTENTION prompt was given when need_wait_return
was set already.
diff --git a/src/misc1.c b/src/misc1.c
index d1e762c..4f36fd8 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -2778,6 +2778,9 @@
#endif
)
{
+ int save_need_wait_return = need_wait_return;
+
+ need_wait_return = FALSE;
ml_open_file(curbuf);
/* The ml_open_file() can cause an ATTENTION message.
@@ -2791,6 +2794,8 @@
wait_return(TRUE);
msg_scroll = save_msg_scroll;
}
+ else
+ need_wait_return = save_need_wait_return;
}
changed_int();
}