C-k w -> C-k x as it should be
This commit is contained in:
parent
f680d078b6
commit
9c0ed68fbb
4
ke/ke.1
4
ke/ke.1
|
@ -38,8 +38,8 @@ Run make(1).
|
||||||
exit the editor. Also C-k C-q.
|
exit the editor. Also C-k C-q.
|
||||||
.It C-k s
|
.It C-k s
|
||||||
save the file, prompting for a filename if needed. Also C-k C-s.
|
save the file, prompting for a filename if needed. Also C-k C-s.
|
||||||
.It C-k w
|
.It C-k x
|
||||||
save the file and exit. Also C-k C-w.
|
save the file and exit. Also C-k C-x.
|
||||||
.It C-k \
|
.It C-k \
|
||||||
Dump core.
|
Dump core.
|
||||||
.El
|
.El
|
||||||
|
|
|
@ -980,8 +980,8 @@ process_kcommand(int16_t c)
|
||||||
case 's':
|
case 's':
|
||||||
save_file();
|
save_file();
|
||||||
break;
|
break;
|
||||||
case CTRL_KEY('w'):
|
case CTRL_KEY('x'):
|
||||||
case 'w':
|
case 'x':
|
||||||
exit(save_file());
|
exit(save_file());
|
||||||
case 'd':
|
case 'd':
|
||||||
while ((editor.row[editor.cury].size - editor.curx) > 0) {
|
while ((editor.row[editor.cury].size - editor.curx) > 0) {
|
||||||
|
@ -1222,7 +1222,7 @@ draw_rows(struct abuf *ab)
|
||||||
if (filerow >= editor.nrows) {
|
if (filerow >= editor.nrows) {
|
||||||
if ((editor.nrows == 0) && (y == editor.rows / 3)) {
|
if ((editor.nrows == 0) && (y == editor.rows / 3)) {
|
||||||
buflen = snprintf(buf, sizeof(buf),
|
buflen = snprintf(buf, sizeof(buf),
|
||||||
"ke v%s", KE_VERSION);
|
"%s", KE_VERSION);
|
||||||
padding = (editor.rows - buflen) / 2;
|
padding = (editor.rows - buflen) / 2;
|
||||||
|
|
||||||
if (padding) {
|
if (padding) {
|
||||||
|
|
Loading…
Reference in New Issue