summaryrefslogtreecommitdiffstats
path: root/src/input.c
diff options
context:
space:
mode:
authormongo <andmarti@gmail.com>2017-04-10 14:57:59 -0300
committermongo <andmarti@gmail.com>2017-04-10 14:57:59 -0300
commit46ba5b07a7fffe78f486e838c9a79930baf5459e (patch)
treea279a26bcc825077710a052a72ca9d2f90410c30 /src/input.c
parentf5959f99d723630c9efaaa30a1209316064f9158 (diff)
use chg_mode everywhere instead of changing curmode directly
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input.c b/src/input.c
index 937aaa8..9e7902d 100644
--- a/src/input.c
+++ b/src/input.c
@@ -130,7 +130,7 @@ void break_waitcmd_loop(struct block * buffer) {
exit_visualmode();
}
- curmode = NORMAL_MODE;
+ chg_mode('.');
cmd_pending = 0; // No longer wait for command. Set flag.
cmd_multiplier = 0; // Reset the multiplier
inputline[0] = L'\0'; // clean inputline