X-Git-Url: https://git.xinqibao.xyz/st.git/blobdiff_plain/cde480c6939e62771ba3b60ef4eb848031aee9f9..8304d4f0599b1be2226c28c553547070658d4af3:/st.c?ds=inline 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];