summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-02-20 14:58:33 -0500
committerJune McEnroe <june@causal.agency>2022-02-20 14:58:33 -0500
commitcca9688cca171dc3ee6ac24822bdd8c315997759 (patch)
tree444bab6767ee683387412a2f60ceb769b5c83383
parentShow indicator in status when window has pending input (diff)
downloadcatgirl-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.c2
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) {