diff options
-rw-r--r-- | src/kilo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kilo.c b/src/kilo.c index edf3617..257261a 100644 --- a/src/kilo.c +++ b/src/kilo.c @@ -954,6 +954,9 @@ static void editorGo(lua_State* L) { editorRefreshBuffer(); } return; + } else if (c == CTRL_U) { + query[0] = '\0'; + qlen = 0; } else if (isprint(c)) { if (qlen < CURRENT_DEFINITION_LEN) { query[qlen++] = c; |