aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/3rdParty/linenoise.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/3rdParty/linenoise.hpp b/src/3rdParty/linenoise.hpp
index 06add16..604f889 100644
--- a/src/3rdParty/linenoise.hpp
+++ b/src/3rdParty/linenoise.hpp
@@ -1109,6 +1109,7 @@ enum KEY_ACTION {
1109 CTRL_T = 20, /* Ctrl-t */ 1109 CTRL_T = 20, /* Ctrl-t */
1110 CTRL_U = 21, /* Ctrl+u */ 1110 CTRL_U = 21, /* Ctrl+u */
1111 CTRL_W = 23, /* Ctrl+w */ 1111 CTRL_W = 23, /* Ctrl+w */
1112 CTRL_Z = 26, /* Ctrl+z */
1112 ESC = 27, /* Escape */ 1113 ESC = 27, /* Escape */
1113 BACKSPACE = 127 /* Backspace */ 1114 BACKSPACE = 127 /* Backspace */
1114}; 1115};
@@ -2165,6 +2166,7 @@ inline int linenoiseEdit(int stdin_fd, int stdout_fd, char *buf, int buflen, con
2165 case 8: /* ctrl-h */ 2166 case 8: /* ctrl-h */
2166 linenoiseEditBackspace(&l); 2167 linenoiseEditBackspace(&l);
2167 break; 2168 break;
2169 case CTRL_Z:
2168 case CTRL_D: /* ctrl-d, remove char at right of cursor, or if the 2170 case CTRL_D: /* ctrl-d, remove char at right of cursor, or if the
2169 line is empty, act as end-of-file. */ 2171 line is empty, act as end-of-file. */
2170 if (l.len > 0) { 2172 if (l.len > 0) {