Xinqi Bao's Git
projects
/
st.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
(from parent 2:
980991f
)
Merge branch 'master' of ssh://suckless.org/gitrepos/st
author
Roberto E. Vargas Caballero <
[email protected]
>
Fri, 15 May 2015 05:51:58 +0000
(07:51 +0200)
committer
Roberto E. Vargas Caballero <
[email protected]
>
Fri, 15 May 2015 05:51:58 +0000
(07:51 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
55a5c56
..
0c6b9c3
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-1069,6
+1069,7
@@
void
selclear(XEvent *e) {
if(sel.ob.x == -1)
return;
+ sel.mode = SEL_IDLE;
sel.ob.x = -1;
tsetdirt(sel.nb.y, sel.ne.y);
}
@@
-3663,7
+3664,7
@@
drawregion(int x1, int y1, int x2, int y2) {
term.dirty[y] = 0;
specs = term.specbuf;
- numspecs = xmakeglyphfontspecs(specs, &term.line[y][
0
], x2 - x1, x1, y);
+ numspecs = xmakeglyphfontspecs(specs, &term.line[y][
x1
], x2 - x1, x1, y);
i = ox = 0;
for(x = x1; x < x2 && i < numspecs; x++) {