Skip to content

Instantly share code, notes, and snippets.

@mattn
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/2511755e15510b7b0b0f to your computer and use it in GitHub Desktop.
Save mattn/2511755e15510b7b0b0f to your computer and use it in GitHub Desktop.
diff -r 7af530381fec src/ex_getln.c
--- a/src/ex_getln.c Sun Aug 17 17:24:07 2014 +0200
+++ b/src/ex_getln.c Mon Sep 01 19:05:23 2014 +0900
@@ -762,8 +762,11 @@
/*
* Open a window to edit the command line (and history).
*/
- c = ex_window();
- some_key_typed = TRUE;
+ if (ex_normal_busy == 0 && got_int == FALSE)
+ {
+ c = ex_window();
+ some_key_typed = TRUE;
+ }
}
# ifdef FEAT_DIGRAPHS
else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment