Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
st.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
75c8eb2
)
fix bug where first selection snaps to lines
author
Jason Woofenden
<jason@jasonwoof.com>
Sat, 10 Oct 2015 02:24:07 +0000
(22:24 -0400)
committer
Jason Woofenden
<jason@jasonwoof.com>
Sat, 10 Oct 2015 02:24:07 +0000
(22:24 -0400)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
952be51
..
4a505b5
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-649,9
+649,10
@@
utf8validate(long *u, size_t i) {
static void
selinit(void) {
static 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 = 0;
sel.mode = 0;
+ sel.snap = 0;
sel.ob.x = -1;
sel.primary = NULL;
sel.clipboard = NULL;
sel.ob.x = -1;
sel.primary = NULL;
sel.clipboard = NULL;