diff options
Diffstat (limited to 'st.c')
| -rw-r--r-- | st.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -707,8 +707,10 @@ selsnap(int mode, int *x, int *y, int direction) { | |||
| 707 | } | 707 | } |
| 708 | } | 708 | } |
| 709 | 709 | ||
| 710 | if(term.line[*y][*x + direction].c[0] == ' ') | 710 | if(strchr(worddelimiters, |
| 711 | term.line[*y][*x + direction].c[0])) { | ||
| 711 | break; | 712 | break; |
| 713 | } | ||
| 712 | 714 | ||
| 713 | *x += direction; | 715 | *x += direction; |
| 714 | } | 716 | } |
