all repos — st @ f56c58a968c1b3ddae76864bc9e27e5b9cc055c4

st (suckless terminal) config

fix bug where first selection snaps to lines
Jason Woofenden jason@jasonwoof.com
commit

f56c58a968c1b3ddae76864bc9e27e5b9cc055c4

parent

293f573efd8c1c9cddd319caa7564736aa60639a

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M st.cst.c

@@ -695,9 +695,10 @@

void selinit(void) { - memset(&sel.tclick1, 0, sizeof(sel.tclick1)); - memset(&sel.tclick2, 0, sizeof(sel.tclick2)); + clock_gettime(CLOCK_MONOTONIC, &sel.tclick1); + clock_gettime(CLOCK_MONOTONIC, &sel.tclick2); sel.mode = SEL_IDLE; + sel.snap = 0; sel.ob.x = -1; sel.primary = NULL; sel.clipboard = NULL;