X-Git-Url: https://git.danieliu.xyz/?p=st.git;a=blobdiff_plain;f=st.c;h=8c42a9caa273a1c6cceb039d290036ed13440533;hp=a8de17d64f6104aa57a370b9a09fc854fbe6bff9;hb=8304d4f0599b1be2226c28c553547070658d4af3;hpb=914fb825df3bde7abdd7947e54f8bf4d2b55e34e diff --git a/st.c b/st.c index a8de17d..8c42a9c 100644 --- a/st.c +++ b/st.c @@ -2412,7 +2412,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];