[hackers] [st] set sel.alt in selstart instead of selextend || Daniel Tameling

From: <git_AT_suckless.org>
Date: Thu, 29 Mar 2018 18:42:07 +0200 (CEST)

commit 74cff67bd7746c2636ea7bc78a0b8af2f8c44838
Author: Daniel Tameling <tamelingdaniel_AT_gmail.com>
AuthorDate: Wed Mar 28 21:27:58 2018 +0200
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Thu Mar 29 18:15:29 2018 +0200

    set sel.alt in selstart instead of selextend

diff --git a/st.c b/st.c
index 46c954b..2612c95 100644
--- a/st.c
+++ b/st.c
_AT_@ -446,6 +446,7 @@ selstart(int col, int row, int snap)
         selclear();
         sel.mode = SEL_EMPTY;
         sel.type = SEL_REGULAR;
+ sel.alt = IS_SET(MODE_ALTSCREEN);
         sel.snap = snap;
         sel.oe.x = sel.ob.x = col;
         sel.oe.y = sel.ob.y = row;
_AT_@ -474,7 +475,6 @@ selextend(int col, int row, int type, int done)
         oldsey = sel.ne.y;
         oldtype = sel.type;
 
- sel.alt = IS_SET(MODE_ALTSCREEN);
         sel.oe.x = col;
         sel.oe.y = row;
         selnormalize();
Received on Thu Mar 29 2018 - 18:42:07 CEST

This archive was generated by hypermail 2.3.0 : Thu Mar 29 2018 - 18:48:28 CEST