Skip to content

Commit

Permalink
Fix: arrow keys not working in visual refs mode
Browse files Browse the repository at this point in the history
  • Loading branch information
cyanpencil committed Aug 1, 2018
1 parent 3fda013 commit b57aeed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libr/core/visual.c
Expand Up @@ -1136,6 +1136,7 @@ R_API int r_core_visual_refs(RCore *core, bool xref) {
}
r_cons_flush ();
ch = r_cons_readchar ();
ch = r_cons_arrow_to_hjkl (ch);
if (ch == ':') {
r_core_visual_prompt_input (core);
} else if (ch == '?') {
Expand All @@ -1161,10 +1162,10 @@ R_API int r_core_visual_refs(RCore *core, bool xref) {
printMode = lastPrintMode;
}
goto repeat;
} else if (r_cons_arrow_to_hjkl (ch) == 'j') {
} else if (ch == 'j') {
skip++;
goto repeat;
} else if (r_cons_arrow_to_hjkl (ch) == 'k') {
} else if (ch == 'k') {
skip--;
if (skip < 0) {
skip = 0;
Expand Down

0 comments on commit b57aeed

Please sign in to comment.