Rename kill ops

master
C. McEnroe 2020-02-09 04:22:41 -05:00
parent b08c2d03ef
commit 3cd830681e
3 changed files with 6 additions and 6 deletions

4
chat.h
View File

@ -151,8 +151,8 @@ enum Edit {
EditNext,
EditPrevWord,
EditNextWord,
EditKillPrev,
EditKillNext,
EditDeleteHead,
EditDeleteTail,
EditDeletePrev,
EditDeleteNext,
EditInsert,

4
edit.c
View File

@ -148,8 +148,8 @@ void edit(size_t id, enum Edit op, wchar_t ch) {
break; case EditDeletePrev: if (pos) delete(--pos, 1);
break; case EditDeleteNext: delete(pos, 1);
break; case EditKillPrev: delete(0, pos); pos = 0;
break; case EditKillNext: delete(pos, len - pos);
break; case EditDeleteHead: delete(0, pos); pos = 0;
break; case EditDeleteTail: delete(pos, len - pos);
break; case EditInsert: {
reserve(pos, 1);

4
ui.c
View File

@ -656,9 +656,9 @@ static void keyCtrl(wchar_t ch) {
break; case L'H': edit(id, EditDeletePrev, 0);
break; case L'I': edit(id, EditComplete, 0);
break; case L'J': edit(id, EditEnter, 0);
break; case L'K': edit(id, EditKillNext, 0);
break; case L'K': edit(id, EditDeleteTail, 0);
break; case L'L': clearok(curscr, true);
break; case L'U': edit(id, EditKillPrev, 0);
break; case L'U': edit(id, EditDeleteHead, 0);
}
}