1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-12-27 09:13:25 +01:00
This commit is contained in:
Jfreegman 2013-12-05 23:05:16 -05:00
parent 7a14845790
commit 18a7bbea3d

View File

@ -94,8 +94,11 @@ static void prompt_onKey(ToxWindow *self, Tox *m, wint_t key)
}
else if (key == T_KEY_DISCARD) { /* CTRL-U: Delete entire line behind pos */
if (prt->pos > 0)
if (prt->pos > 0) {
wmove(self->window, prt->orig_y, X_OFST);
wclrtobot(self->window);
discard_buf(prt->line, &prt->pos, &prt->len);
}
}
else if (key == T_KEY_KILL) { /* CTRL-K: Delete entire line in front of pos */