diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2019-04-10 01:54:43 +0300 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2019-04-14 13:50:20 +0200 |
commit | f1546cf9c1f9fc52d26dbbcf73210901e83c7ecf (patch) | |
tree | a86607991f00be33cc5722d5b27d8278819e318b /st.c | |
parent | 21367a040f056f6a207fafa066bd1cb2d9cae586 (diff) | |
download | st-patched-f1546cf9c1f9fc52d26dbbcf73210901e83c7ecf.tar.bz2 st-patched-f1546cf9c1f9fc52d26dbbcf73210901e83c7ecf.tar.xz st-patched-f1546cf9c1f9fc52d26dbbcf73210901e83c7ecf.zip |
selection: fix view to match actual selection on first cell
Diffstat (limited to 'st.c')
-rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -458,7 +458,7 @@ selextend(int col, int row, int type, int done) | |||
458 | selnormalize(); | 458 | selnormalize(); |
459 | sel.type = type; | 459 | sel.type = type; |
460 | 460 | ||
461 | if (oldey != sel.oe.y || oldex != sel.oe.x || oldtype != sel.type) | 461 | if (oldey != sel.oe.y || oldex != sel.oe.x || oldtype != sel.type || sel.mode == SEL_EMPTY) |
462 | tsetdirt(MIN(sel.nb.y, oldsby), MAX(sel.ne.y, oldsey)); | 462 | tsetdirt(MIN(sel.nb.y, oldsby), MAX(sel.ne.y, oldsey)); |
463 | 463 | ||
464 | sel.mode = done ? SEL_IDLE : SEL_READY; | 464 | sel.mode = done ? SEL_IDLE : SEL_READY; |