diff options
| author | Jason Woofenden <jason@jasonwoof.com> | 2015-10-11 11:44:34 +0200 | 
|---|---|---|
| committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2015-10-11 11:44:34 +0200 | 
| commit | f56c58a968c1b3ddae76864bc9e27e5b9cc055c4 (patch) | |
| tree | cc8d6215f8250a5af1bd484d4e7f82aff4c7d344 | |
| parent | 293f573efd8c1c9cddd319caa7564736aa60639a (diff) | |
| download | st-f56c58a968c1b3ddae76864bc9e27e5b9cc055c4.tar.gz st-f56c58a968c1b3ddae76864bc9e27e5b9cc055c4.tar.bz2  | |
fix bug where first selection snaps to lines
| -rw-r--r-- | st.c | 5 | 
1 files changed, 3 insertions, 2 deletions
@@ -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;  | 
