Fix selection: selclear in tputc

This commit is contained in:
bakkeby 2020-05-20 14:26:56 +02:00
parent 7a1259e112
commit 18b2af6546
2 changed files with 3 additions and 3 deletions

2
st.c
View file

@ -2582,7 +2582,7 @@ check_control_code:
*/
return;
}
if (sel.ob.x != -1 && BETWEEN(term.c.y, sel.ob.y, sel.oe.y))
if (selected(term.c.x, term.c.y))
selclear();
gp = &term.line[term.c.y][term.c.x];