X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=st.c;h=8c42a9caa273a1c6cceb039d290036ed13440533;hb=8304d4f0599b1be2226c28c553547070658d4af3;hp=1414f989c4f4c8b6153c57d071dd13a741a54c30;hpb=cde480c6939e62771ba3b60ef4eb848031aee9f9;p=st.git diff --git a/st.c b/st.c index 1414f98..8c42a9c 100644 --- a/st.c +++ b/st.c @@ -2153,6 +2153,7 @@ tcontrolcode(uchar ascii) return; case '\032': /* SUB */ tsetchar('?', &term.c.attr, term.c.x, term.c.y); + /* FALLTHROUGH */ case '\030': /* CAN */ csireset(); break; @@ -2411,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];