From 4d072a37d75b3d26425fcc4b5cfcf1d67bab0658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 22 Oct 2015 21:28:21 +0200 Subject: vis: remove global state from key input handling --- config.def.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index e3f8e92..9ba2e5b 100644 --- a/config.def.h +++ b/config.def.h @@ -57,15 +57,6 @@ static Command cmds[] = { { /* array terminator */ }, }; -/* called before any other keybindings are checked, if the function returns false - * the key is completely ignored. */ -static bool vis_keypress(const char *key) { - editor_info_hide(vis); - if (vis->recording && key) - macro_append(vis->recording, key); - return true; -} - #define ALIAS(name) .alias = name, #define ACTION(id) .action = &vis_action[VIS_ACTION_##id], @@ -1528,7 +1519,6 @@ static Config editors[] = { { .name = "vis", .mode = &vis_modes[VIS_MODE_NORMAL], - .keypress = vis_keypress, }, }; -- cgit v1.2.3