reflow: addressing selection clearing bug when selection includes the prompt ref. #166

This commit is contained in:
Bakkeby 2025-02-26 21:23:09 +01:00 committed by Antoine Vaure
parent c7503f5737
commit 50286bb861
2 changed files with 3 additions and 3 deletions

2
st.c
View file

@ -3434,7 +3434,7 @@ check_control_code:
#if REFLOW_PATCH
/* selected() takes relative coordinates */
if (selected(term.c.x + term.scr, term.c.y + term.scr))
if (selected(term.c.x, term.c.y + term.scr))
selclear();
#else
if (selected(term.c.x, term.c.y))