aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Kurtis Rader <krader@skepticism.us>2016-01-31 17:37:51 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2016-02-04 13:39:19 -0800
commit2646d51a0bb2551e1d53d164cea2a6a15be44b6e (patch)
tree1bf0f823ea9c150e45ad2f8fac170242dcc5c158 /src
parente88bfbc440a05d647a555bea78195a463d012a89 (diff)
change default escape timeout
This changes the default escape timeout for the default keybindings (emacs mode) to 300ms and the default for vi keybindings to 10ms. I couldn't resist fixing a few nits in the fish_vi_key_bindings.fish file since I was touching it to set the escape timeout.
Diffstat (limited to 'src')
-rw-r--r--src/input_common.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/input_common.cpp b/src/input_common.cpp
index 291a37a7..ebe95fce 100644
--- a/src/input_common.cpp
+++ b/src/input_common.cpp
@@ -28,15 +28,10 @@ Implementation file for the low level input library
#include "env.h"
#include "iothread.h"
-/**
- Time in milliseconds to wait for another byte to be available for
- reading after \\x1b is read before assuming that escape key was
- pressed, and not an escape sequence.
-
- This is the value used by the readline library. It can be overridden by
- setting the fish_escape_delay_ms variable.
-*/
-#define WAIT_ON_ESCAPE_DEFAULT 500
+// Time in milliseconds to wait for another byte to be available for reading
+// after \x1b is read before assuming that escape key was pressed, and not an
+// escape sequence.
+#define WAIT_ON_ESCAPE_DEFAULT 300
static int wait_on_escape_ms = WAIT_ON_ESCAPE_DEFAULT;
/** Characters that have been read and returned by the sequence matching code */