diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-01-04 21:52:23 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-01-04 21:52:23 -0800 |
commit | 4798d97a15cbb9653a7b00e549bec02dc2c8be63 (patch) | |
tree | 6e968548e7b23dac691ad8567c2dbec26f5dbe93 | |
parent | 08c1ea8fc4c05911926f2cfe44e30accafe0ee90 (diff) | |
download | teliva-4798d97a15cbb9653a7b00e549bec02dc2c8be63.tar.gz |
feels more consistent to exit editor with ctrl-x
-rw-r--r-- | src/kilo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kilo.c b/src/kilo.c index 76c5348..8ff5f27 100644 --- a/src/kilo.c +++ b/src/kilo.c @@ -665,7 +665,7 @@ static void editorMenu(void) { mvaddch(LINES-1, x, ' '); attrset(A_NORMAL); menu_column = 2; - draw_menu_item("^e", "run"); + draw_menu_item("^x", "run"); if (Previous_error != NULL) { attron(A_BOLD); draw_menu_item("^c", "abort"); @@ -1090,7 +1090,7 @@ static void editorProcessKeypress2(int c) { if (Previous_error != NULL) exit(1); break; - case CTRL_E: + case CTRL_X: /* Save and quit. */ editorSaveToDisk(); save_editor_state(E.rowoff, E.coloff, E.cy, E.cx); @@ -1226,7 +1226,7 @@ static void editorNonCodeMenu(void) { mvaddch(LINES-1, x, ' '); attrset(A_NORMAL); menu_column = 2; - draw_menu_item("^e", "back"); + draw_menu_item("^x", "back"); if (Previous_error != NULL) { attron(A_BOLD); draw_menu_item("^c", "abort"); |