st
simple terminal
git clone https://9o.is/git/st.git
commit a1ad3b0e90cb6afefdafd6a4be270922b1fc7e13 parent 42ebd58b6cf3a640a7c12643742cd3f45bb5de84 Author: Jason Woofenden <jason@jasonwoof.com> Date: Sun, 11 Oct 2015 11:44:34 +0200 fix bug where first selection snaps to lines Diffstat:
| M | st.c | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git 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;