diff options
author | Nathan Scott <nathans@redhat.com> | 2020-09-15 09:33:58 +1000 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2020-09-15 09:33:58 +1000 |
commit | c9ecd0fa74a11278afcab063c905325873462dd2 (patch) | |
tree | 88ab7f0efeac6e8ee9e34c208f85d472f35e75bd /ScreenManager.c | |
parent | f6662f97fdfa6f18a9be9504018158f1353d4cd9 (diff) |
Revert the vim_mode setting for now, needs a rethink
There have been too many bugs reported in vim_mode, and
the proposed fixes are increasingly fragile - hence we
have decided to back it out for now. For reference:
https://github.com/htop-dev/htop/issues/69
https://github.com/htop-dev/htop/pull/37
https://github.com/htop-dev/htop/pull/106
The whitespace changes also arrived in commit 12805f61d
not sure what that was about, but backed out as well.
Diffstat (limited to 'ScreenManager.c')
-rw-r--r-- | ScreenManager.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/ScreenManager.c b/ScreenManager.c index 24d292dd..92e792b4 100644 --- a/ScreenManager.c +++ b/ScreenManager.c @@ -163,22 +163,6 @@ void ScreenManager_run(ScreenManager* this, Panel** lastFocus, int* lastKey) { set_escdelay(25); ch = getch(); - if (this->settings->vimMode) { - switch (ch) { - case 'h': ch = KEY_LEFT; break; - case 'j': ch = KEY_DOWN; break; - case 'k': ch = KEY_UP; break; - case 'l': ch = KEY_RIGHT; break; - case KEY_LEFT: ch = 'h'; break; - case KEY_DOWN: ch = 'j'; break; - case KEY_UP: ch = 'k'; break; - case KEY_RIGHT: ch = 'l'; break; - case 'K': ch = 'k'; break; - case 'J': ch = 'K'; break; - case 'L': ch = 'l'; break; - } - } - HandlerResult result = IGNORED; if (ch == KEY_MOUSE && this->settings->enableMouse) { ch = ERR; |