mirror of
https://github.com/alrayyes/st.git
synced 2024-11-22 03:16:22 +00:00
fix bug where first selection snaps to lines
This commit is contained in:
parent
293f573efd
commit
f56c58a968
1 changed files with 3 additions and 2 deletions
5
st.c
5
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;
|
||||
|
|
Loading…
Reference in a new issue