Changed references from Cmd to g.Cmd.

This commit is contained in:
Bart House
2018-12-22 15:03:25 -08:00
parent 9567526586
commit 7743714f1b
+8 -8
View File
@@ -171,16 +171,16 @@ vms_getchar()
} else if (kb_buf == ESC || kb_buf == CSI || kb_buf == SS3) { } else if (kb_buf == ESC || kb_buf == CSI || kb_buf == SS3) {
switch (parse_function_key((int) kb_buf)) { switch (parse_function_key((int) kb_buf)) {
case SMG$K_TRM_UP: case SMG$K_TRM_UP:
key = Cmd.move_N; key = g.Cmd.move_N;
break; break;
case SMG$K_TRM_DOWN: case SMG$K_TRM_DOWN:
key = Cmd.move_S; key = g.Cmd.move_S;
break; break;
case SMG$K_TRM_LEFT: case SMG$K_TRM_LEFT:
key = Cmd.move_W; key = g.Cmd.move_W;
break; break;
case SMG$K_TRM_RIGHT: case SMG$K_TRM_RIGHT:
key = Cmd.move_E; key = g.Cmd.move_E;
break; break;
default: default:
key = ESC; key = ESC;
@@ -201,16 +201,16 @@ vms_getchar()
smg$read_keystroke(&kb, &key); smg$read_keystroke(&kb, &key);
switch (key) { switch (key) {
case SMG$K_TRM_UP: case SMG$K_TRM_UP:
key = Cmd.move_N; key = g.Cmd.move_N;
break; break;
case SMG$K_TRM_DOWN: case SMG$K_TRM_DOWN:
key = Cmd.move_S; key = g.Cmd.move_S;
break; break;
case SMG$K_TRM_LEFT: case SMG$K_TRM_LEFT:
key = Cmd.move_W; key = g.Cmd.move_W;
break; break;
case SMG$K_TRM_RIGHT: case SMG$K_TRM_RIGHT:
key = Cmd.move_E; key = g.Cmd.move_E;
break; break;
case '\r': case '\r':
key = '\n'; key = '\n';