mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-30 04:03:26 +01:00
fix
This commit is contained in:
parent
7a14845790
commit
18a7bbea3d
@ -94,9 +94,12 @@ 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 */
|
||||
if (prt->len != prt->pos)
|
||||
|
Loading…
Reference in New Issue
Block a user