diff options
Diffstat (limited to 'st.c')
| -rw-r--r-- | st.c | 2 |
1 files changed, 2 insertions, 0 deletions
| @@ -947,6 +947,8 @@ getsel(void) { | |||
| 947 | lastx = (sel.ne.y == y) ? sel.ne.x : term.col-1; | 947 | lastx = (sel.ne.y == y) ? sel.ne.x : term.col-1; |
| 948 | } | 948 | } |
| 949 | last = &term.line[y][MIN(lastx, linelen-1)]; | 949 | last = &term.line[y][MIN(lastx, linelen-1)]; |
| 950 | while(last >= gp && last->c[0] == ' ') | ||
| 951 | --last; | ||
| 950 | 952 | ||
| 951 | for( ; gp <= last; ++gp) { | 953 | for( ; gp <= last; ++gp) { |
| 952 | if(gp->mode & ATTR_WDUMMY) | 954 | if(gp->mode & ATTR_WDUMMY) |
