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

This commit is contained in:
2020-05-06 11:39:32 -07:00
parent e5081f9640
commit 5c0c7d9946
2 changed files with 5 additions and 5 deletions

6
main.c
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) {