diff src/ex_docmd.c @ 12459:937356f8f8d6 v8.0.1109

patch 8.0.1109: timer causes error on exit from Ex mode commit https://github.com/vim/vim/commit/f5291f301e9322545f0621b2157e93050d1d4fb3 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 14 22:55:37 2017 +0200 patch 8.0.1109: timer causes error on exit from Ex mode Problem: Timer causes error on exit from Ex mode. (xtal8) Solution: save and restore the ex_pressedreturn flag. (Christian Brabandt, closes #2079)
author Christian Brabandt <cb@256bit.org>
date Thu, 14 Sep 2017 23:00:04 +0200
parents dfb8254aa735
children 68d7bc045dbe
line wrap: on
line diff
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -12418,3 +12418,17 @@ ex_folddo(exarg_T *eap)
 #endif
 }
 #endif
+
+# if defined(FEAT_TIMERS) || defined(PROTO)
+    int
+get_pressedreturn(void)
+{
+    return ex_pressedreturn;
+}
+
+    void
+set_pressedreturn(int val)
+{
+     ex_pressedreturn = val;
+}
+#endif