diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-11 17:41:37 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-11 17:41:37 -0800 |
commit | d72eae59784e8da00c7fe00539b1095e1f8ccaf4 (patch) | |
tree | 417e71a4177143fef8e5f5becb0e4484213c6acd /src/kilo.c | |
parent | e7f33de81e9528bdf8e3700ebd3cf7e8d776f2c6 (diff) | |
download | teliva-d72eae59784e8da00c7fe00539b1095e1f8ccaf4.tar.gz |
create empty file when navigating to empty definition
Diffstat (limited to 'src/kilo.c')
-rw-r--r-- | src/kilo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kilo.c b/src/kilo.c index dab7d96..365b8d7 100644 --- a/src/kilo.c +++ b/src/kilo.c @@ -1197,7 +1197,7 @@ void editorGo(lua_State* L, int fd) { if (qlen != 0) query[--qlen] = '\0'; } else if (c == ESC || c == ENTER) { editorSetStatusMessage(""); - if (c == ENTER && definition_exists(L, query)) { + if (c == ENTER) { Current_definition = query; write_definition_to_file(L, Current_definition, "teliva_editbuffer"); editorClear(); |