diff options
author | Christoph Lohmann <20h@r-36.net> | 2013-06-01 12:23:55 +0200 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2013-06-01 12:23:55 +0200 |
commit | 8315dc417982936186837edfac24420d0d0e516e (patch) | |
tree | 20fce11dc279981a1a077090faa69c4265281643 /st.c | |
parent | b5144100a59956b5bf69614a077bd4d252d7dc6c (diff) | |
download | st-8315dc417982936186837edfac24420d0d0e516e.tar.gz st-8315dc417982936186837edfac24420d0d0e516e.zip |
Fixing bad highlighting on first SNAP_WORD multiline select.
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -780,7 +780,7 @@ getbuttoninfo(XEvent *e) { | |||
780 | sel.oe.x = x2col(e->xbutton.x); | 780 | sel.oe.x = x2col(e->xbutton.x); |
781 | sel.oe.y = y2row(e->xbutton.y); | 781 | sel.oe.y = y2row(e->xbutton.y); |
782 | 782 | ||
783 | if (sel.ob.y < sel.oe.y | 783 | if(sel.ob.y < sel.oe.y |
784 | || (sel.ob.y == sel.oe.y && sel.ob.x < sel.oe.x)) { | 784 | || (sel.ob.y == sel.oe.y && sel.ob.x < sel.oe.x)) { |
785 | selsnap(sel.snap, &sel.ob.x, &sel.ob.y, -1); | 785 | selsnap(sel.snap, &sel.ob.x, &sel.ob.y, -1); |
786 | selsnap(sel.snap, &sel.oe.x, &sel.oe.y, +1); | 786 | selsnap(sel.snap, &sel.oe.x, &sel.oe.y, +1); |
@@ -788,7 +788,6 @@ getbuttoninfo(XEvent *e) { | |||
788 | selsnap(sel.snap, &sel.oe.x, &sel.oe.y, -1); | 788 | selsnap(sel.snap, &sel.oe.x, &sel.oe.y, -1); |
789 | selsnap(sel.snap, &sel.ob.x, &sel.ob.y, +1); | 789 | selsnap(sel.snap, &sel.ob.x, &sel.ob.y, +1); |
790 | } | 790 | } |
791 | |||
792 | selsort(); | 791 | selsort(); |
793 | 792 | ||
794 | sel.type = SEL_REGULAR; | 793 | sel.type = SEL_REGULAR; |
@@ -1099,7 +1098,7 @@ brelease(XEvent *e) { | |||
1099 | selcopy(); | 1098 | selcopy(); |
1100 | } | 1099 | } |
1101 | sel.mode = 0; | 1100 | sel.mode = 0; |
1102 | term.dirty[sel.oe.y] = 1; | 1101 | tsetdirt(sel.nb.y, sel.ne.y); |
1103 | } | 1102 | } |
1104 | } | 1103 | } |
1105 | 1104 | ||