mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-25 08:25:47 +01:00
fix segfault with mouse selection. (thx anonymous)
This commit is contained in:
parent
3959a99293
commit
cddbd6eee5
1 changed files with 1 additions and 1 deletions
2
st.c
2
st.c
|
@ -615,7 +615,7 @@ bmotion(XEvent *e) {
|
||||||
if(oldey != sel.ey || oldex != sel.ex) {
|
if(oldey != sel.ey || oldex != sel.ex) {
|
||||||
int starty = MIN(oldey, sel.ey);
|
int starty = MIN(oldey, sel.ey);
|
||||||
int endy = MAX(oldey, sel.ey);
|
int endy = MAX(oldey, sel.ey);
|
||||||
drawregion(0, (starty > 0 ? starty : 0), term.col, (sel.ey < term.row ? endy+1 : term.row));
|
drawregion(0, (starty > 0 ? starty : 0), term.col, (endy < term.row ? endy+1 : term.row));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue