diff options
author | June McEnroe <june@causal.agency> | 2022-02-20 14:58:33 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2022-02-20 14:58:33 -0500 |
commit | cca9688cca171dc3ee6ac24822bdd8c315997759 (patch) | |
tree | 444bab6767ee683387412a2f60ceb769b5c83383 | |
parent | Show indicator in status when window has pending input (diff) | |
download | catgirl-cca9688cca171dc3ee6ac24822bdd8c315997759.tar.gz catgirl-cca9688cca171dc3ee6ac24822bdd8c315997759.zip |
Clear edit buffer before running command
Otherwise a command that switches windows will update the status line while the edit buffer still has input "pending", showing an indicator.
Diffstat (limited to '')
-rw-r--r-- | input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/input.c b/input.c index ad6d533..28349f4 100644 --- a/input.c +++ b/input.c @@ -385,8 +385,8 @@ static void inputEnter(void) { if (!cmd) err(EX_OSERR, "editString"); tabAccept(); - command(id, cmd); editFn(&edits[id], EditClear); + command(id, cmd); } static void keyCode(int code) { |