aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorJason Woofenden <jason@jasonwoof.com>2015-10-11 11:44:34 +0200
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2015-10-11 11:44:34 +0200
commitf56c58a968c1b3ddae76864bc9e27e5b9cc055c4 (patch)
treecc8d6215f8250a5af1bd484d4e7f82aff4c7d344 /st.c
parent293f573efd8c1c9cddd319caa7564736aa60639a (diff)
downloadst-f56c58a968c1b3ddae76864bc9e27e5b9cc055c4.tar.gz
st-f56c58a968c1b3ddae76864bc9e27e5b9cc055c4.zip
fix bug where first selection snaps to lines
Diffstat (limited to 'st.c')
-rw-r--r--st.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/st.c b/st.c
index 01d4410..b2a4fff 100644
--- a/st.c
+++ b/st.c
@@ -695,9 +695,10 @@ utf8validate(Rune *u, size_t i)
695void 695void
696selinit(void) 696selinit(void)
697{ 697{
698 memset(&sel.tclick1, 0, sizeof(sel.tclick1)); 698 clock_gettime(CLOCK_MONOTONIC, &sel.tclick1);
699 memset(&sel.tclick2, 0, sizeof(sel.tclick2)); 699 clock_gettime(CLOCK_MONOTONIC, &sel.tclick2);
700 sel.mode = SEL_IDLE; 700 sel.mode = SEL_IDLE;
701 sel.snap = 0;
701 sel.ob.x = -1; 702 sel.ob.x = -1;
702 sel.primary = NULL; 703 sel.primary = NULL;
703 sel.clipboard = NULL; 704 sel.clipboard = NULL;