pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
293f573
)
fix bug where first selection snaps to lines
author
Jason Woofenden
<jason@jasonwoof.com>
Sun, 11 Oct 2015 09:44:34 +0000
(11:44 +0200)
committer
Roberto E. Vargas Caballero
<k0ga@shike2.com>
Sun, 11 Oct 2015 09:44:34 +0000
(11:44 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
01d4410
..
b2a4fff
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-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;