aboutsummaryrefslogtreecommitdiff
path: root/editors/vi.c
diff options
context:
space:
mode:
Diffstat (limited to 'editors/vi.c')
-rw-r--r--editors/vi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/editors/vi.c b/editors/vi.c
index 974f9978b..c142dacd7 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -3933,7 +3933,9 @@ static void do_cmd(int c)
c1 = get_one_char();
if (c1 != 'g') {
buf[0] = 'g';
- buf[1] = c1; // TODO: if Unicode?
+ // c1 < 0 if the key was special. Try "g<up-arrow>"
+ // TODO: if Unicode?
+ buf[1] = (c1 >= 0 ? c1 : '*');
buf[2] = '\0';
not_implemented(buf);
break;