diff --git a/ke/ke.1 b/ke/ke.1 index ea26701..475ad13 100644 --- a/ke/ke.1 +++ b/ke/ke.1 @@ -38,8 +38,8 @@ Run make(1). exit the editor. Also C-k C-q. .It C-k s save the file, prompting for a filename if needed. Also C-k C-s. -.It C-k w -save the file and exit. Also C-k C-w. +.It C-k x +save the file and exit. Also C-k C-x. .It C-k \ Dump core. .El diff --git a/ke/main.c b/ke/main.c index 87f3069..0f8c669 100644 --- a/ke/main.c +++ b/ke/main.c @@ -980,8 +980,8 @@ process_kcommand(int16_t c) case 's': save_file(); break; - case CTRL_KEY('w'): - case 'w': + case CTRL_KEY('x'): + case 'x': exit(save_file()); case 'd': while ((editor.row[editor.cury].size - editor.curx) > 0) { @@ -1222,7 +1222,7 @@ draw_rows(struct abuf *ab) if (filerow >= editor.nrows) { if ((editor.nrows == 0) && (y == editor.rows / 3)) { buflen = snprintf(buf, sizeof(buf), - "ke v%s", KE_VERSION); + "%s", KE_VERSION); padding = (editor.rows - buflen) / 2; if (padding) {