diff options
| author | Daniel Tameling <tamelingdaniel@gmail.com> | 2018-03-28 21:27:58 +0200 |
|---|---|---|
| committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-03-29 18:15:29 +0200 |
| commit | 74cff67bd7746c2636ea7bc78a0b8af2f8c44838 (patch) | |
| tree | d8892dade519b03a724552dc150943bcfaa9501c | |
| parent | 6f0f2b7ec3713351de274707672fbadb6cc727a2 (diff) | |
| download | st-74cff67bd7746c2636ea7bc78a0b8af2f8c44838.tar.gz st-74cff67bd7746c2636ea7bc78a0b8af2f8c44838.zip | |
set sel.alt in selstart instead of selextend
| -rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -446,6 +446,7 @@ selstart(int col, int row, int snap) | |||
| 446 | selclear(); | 446 | selclear(); |
| 447 | sel.mode = SEL_EMPTY; | 447 | sel.mode = SEL_EMPTY; |
| 448 | sel.type = SEL_REGULAR; | 448 | sel.type = SEL_REGULAR; |
| 449 | sel.alt = IS_SET(MODE_ALTSCREEN); | ||
| 449 | sel.snap = snap; | 450 | sel.snap = snap; |
| 450 | sel.oe.x = sel.ob.x = col; | 451 | sel.oe.x = sel.ob.x = col; |
| 451 | sel.oe.y = sel.ob.y = row; | 452 | sel.oe.y = sel.ob.y = row; |
| @@ -474,7 +475,6 @@ selextend(int col, int row, int type, int done) | |||
| 474 | oldsey = sel.ne.y; | 475 | oldsey = sel.ne.y; |
| 475 | oldtype = sel.type; | 476 | oldtype = sel.type; |
| 476 | 477 | ||
| 477 | sel.alt = IS_SET(MODE_ALTSCREEN); | ||
| 478 | sel.oe.x = col; | 478 | sel.oe.x = col; |
| 479 | sel.oe.y = row; | 479 | sel.oe.y = row; |
| 480 | selnormalize(); | 480 | selnormalize(); |
