[hackers] [st] fix bug where first selection snaps to lines || Jason Woofenden
commit f56c58a968c1b3ddae76864bc9e27e5b9cc055c4
Author: Jason Woofenden <jason_AT_jasonwoof.com>
AuthorDate: Sun Oct 11 11:44:34 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sun Oct 11 11:44:34 2015 +0200
fix bug where first selection snaps to lines
diff --git a/st.c b/st.c
index 01d4410..b2a4fff 100644
--- a/st.c
+++ b/st.c
_AT_@ -695,9 +695,10 @@ utf8validate(Rune *u, size_t i)
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;
Received on Sun Oct 11 2015 - 11:45:45 CEST
This archive was generated by hypermail 2.3.0
: Sun Oct 11 2015 - 11:48:11 CEST