reflow: addressing selection clearing bug when selection includes the prompt ref. #166
This commit is contained in:
parent
978e25f23b
commit
c4af76a9cc
2 changed files with 3 additions and 3 deletions
|
|
@ -619,8 +619,8 @@ tclearregion(int x1, int y1, int x2, int y2, int usecurattr)
|
||||||
int x, y;
|
int x, y;
|
||||||
|
|
||||||
/* regionselected() takes relative coordinates */
|
/* regionselected() takes relative coordinates */
|
||||||
if (regionselected(x1+term.scr, y1+term.scr, x2+term.scr, y2+term.scr))
|
if (regionselected(x1, y1+term.scr, x2, y2+term.scr))
|
||||||
selremove();
|
selclear();
|
||||||
|
|
||||||
for (y = y1; y <= y2; y++) {
|
for (y = y1; y <= y2; y++) {
|
||||||
term.dirty[y] = 1;
|
term.dirty[y] = 1;
|
||||||
|
|
|
||||||
2
st.c
2
st.c
|
|
@ -3434,7 +3434,7 @@ check_control_code:
|
||||||
|
|
||||||
#if REFLOW_PATCH
|
#if REFLOW_PATCH
|
||||||
/* selected() takes relative coordinates */
|
/* 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();
|
selclear();
|
||||||
#else
|
#else
|
||||||
if (selected(term.c.x, term.c.y))
|
if (selected(term.c.x, term.c.y))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue