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 | cddbd6eee59104a029087c30f9ff5e7e415bc584 (patch) | |
| tree | 5c9c8a8bca16c7487f304ea3d3d0bdbe6b33313d /st.c | |
| parent | add -w option to embed st. (thx nodus cursorius) (diff) | |
| download | st-cddbd6eee59104a029087c30f9ff5e7e415bc584.tar.gz st-cddbd6eee59104a029087c30f9ff5e7e415bc584.zip | |
fix segfault with mouse selection. (thx anonymous)
Diffstat (limited to '')
| -rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -615,7 +615,7 @@ bmotion(XEvent *e) { | |||
| 615 | if(oldey != sel.ey || oldex != sel.ex) { | 615 | if(oldey != sel.ey || oldex != sel.ex) { |
| 616 | int starty = MIN(oldey, sel.ey); | 616 | int starty = MIN(oldey, sel.ey); |
| 617 | int endy = MAX(oldey, sel.ey); | 617 | int endy = MAX(oldey, sel.ey); |
| 618 | drawregion(0, (starty > 0 ? starty : 0), term.col, (sel.ey < term.row ? endy+1 : term.row)); | 618 | drawregion(0, (starty > 0 ? starty : 0), term.col, (endy < term.row ? endy+1 : term.row)); |
| 619 | } | 619 | } |
| 620 | } | 620 | } |
| 621 | } | 621 | } |
