diff options
| -rw-r--r-- | st.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -1069,6 +1069,7 @@ void | |||
| 1069 | selclear(XEvent *e) { | 1069 | selclear(XEvent *e) { |
| 1070 | if(sel.ob.x == -1) | 1070 | if(sel.ob.x == -1) |
| 1071 | return; | 1071 | return; |
| 1072 | sel.mode = SEL_IDLE; | ||
| 1072 | sel.ob.x = -1; | 1073 | sel.ob.x = -1; |
| 1073 | tsetdirt(sel.nb.y, sel.ne.y); | 1074 | tsetdirt(sel.nb.y, sel.ne.y); |
| 1074 | } | 1075 | } |
| @@ -3663,7 +3664,7 @@ drawregion(int x1, int y1, int x2, int y2) { | |||
| 3663 | term.dirty[y] = 0; | 3664 | term.dirty[y] = 0; |
| 3664 | 3665 | ||
| 3665 | specs = term.specbuf; | 3666 | specs = term.specbuf; |
| 3666 | numspecs = xmakeglyphfontspecs(specs, &term.line[y][0], x2 - x1, x1, y); | 3667 | numspecs = xmakeglyphfontspecs(specs, &term.line[y][x1], x2 - x1, x1, y); |
| 3667 | 3668 | ||
| 3668 | i = ox = 0; | 3669 | i = ox = 0; |
| 3669 | for(x = x1; x < x2 && i < numspecs; x++) { | 3670 | for(x = x1; x < x2 && i < numspecs; x++) { |
