mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-13 00:53:01 +01:00
fix
This commit is contained in:
parent
7a14845790
commit
18a7bbea3d
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user