diff options
| author | Aurélien Aptel <aurelien.aptel@gmail.com> | 2011-06-09 14:27:07 +0200 |
|---|---|---|
| committer | Aurélien Aptel <aurelien.aptel@gmail.com> | 2011-06-09 14:27:07 +0200 |
| commit | ce547d3060308419da77465e122db437d7be056b (patch) | |
| tree | 5c9c8a8bca16c7487f304ea3d3d0bdbe6b33313d | |
| parent | 4259a3ba3a99da4bc551c9cde6868366fb2c01fa (diff) | |
| download | st-ce547d3060308419da77465e122db437d7be056b.tar.xz st-ce547d3060308419da77465e122db437d7be056b.zip | |
fix segfault with mouse selection. (thx anonymous)
| -rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -615,7 +615,7 @@ bmotion(XEvent *e) { if(oldey != sel.ey || oldex != sel.ex) { int starty = MIN(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)); } } } |
