aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/main.c b/main.c
index 40cb9c5..4c6b1cf 100644
--- a/main.c
+++ b/main.c
@@ -1716,9 +1716,14 @@ static const char *operator_filter(Vis *vis, const char *keys, const Arg *arg) {
}
static const char *movement_key(Vis *vis, const char *keys, const Arg *arg) {
+ if (!keys[0]) {
+ vis_keymap_disable(vis);
+ return NULL;
+ }
+
char key[32];
const char *next;
- if (!keys[0] || !(next = vis_keys_next(vis, keys)))
+ if (!(next = vis_keys_next(vis, keys)))
return NULL;
size_t len = next - keys;
if (len < sizeof key) {