diff options
author | andmarti1424 <scim.spreadsheet@gmail.com> | 2015-02-21 16:55:47 -0300 |
---|---|---|
committer | andmarti1424 <scim.spreadsheet@gmail.com> | 2015-02-21 16:55:47 -0300 |
commit | a962cf8a354a2f86c04e947d89c36d7c4a9d4ac7 (patch) | |
tree | aae23a3639f790d3254021aa53e8665284384b69 | |
parent | 5a5a4b3b8080dde61f8f30606c17a54de09b4bac (diff) |
Change in history
-rw-r--r-- | src/input.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input.c b/src/input.c index 663e94a..d7e5cc0 100644 --- a/src/input.c +++ b/src/input.c @@ -141,9 +141,11 @@ void handle_input(struct block * buffer) { // Break waiting command loop void break_waitcmd_loop(struct block * buffer) { if (curmode == COMMAND_MODE) { +#ifdef HISTORY_FILE del_item_from_history(commandline_history, 0); commandline_history->pos = 0; set_comp(0); +#endif } else if (curmode == VISUAL_MODE) { exit_visualmode(); } |