Commit cfe73636 authored by Lasse Karstensen's avatar Lasse Karstensen

Add vi-style key bindings.

parent 14ee00a1
......@@ -998,11 +998,13 @@ handle_keypress(int ch)
{
switch (ch) {
case KEY_UP:
case 107: /* k */
if (current == 0)
return;
current--;
break;
case KEY_DOWN:
case 106: /* j */
if (current == n_ptarray - 1)
return;
current++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment