C-k w -> C-k x as it should be

This commit is contained in:
Kyle Isom 2020-05-06 11:39:32 -07:00
parent f680d078b6
commit 9c0ed68fbb
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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) {