aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2013-05-04 19:04:20 +0200
committerChristoph Lohmann <20h@r-36.net>2013-05-04 19:04:20 +0200
commit8e968739c3cfc4e9f7088a9ea360bc4f37e9ad9f (patch)
tree216f0beee22b1d7a3703537a8f98cf90e52c22ae /st.c
parent0c2b513d01697aea20bb4a2a144b55e72c625e86 (diff)
downloadst-8e968739c3cfc4e9f7088a9ea360bc4f37e9ad9f.tar.gz
st-8e968739c3cfc4e9f7088a9ea360bc4f37e9ad9f.tar.bz2
Allow more complex delimiters for word selections.
Thanks Alexander Rezinsky <alexrez@gmail.com>!
Diffstat (limited to 'st.c')
-rw-r--r--st.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/st.c b/st.c
index 0f47d6d..5251e70 100644
--- a/st.c
+++ b/st.c
@@ -707,8 +707,10 @@ selsnap(int mode, int *x, int *y, int direction) {
}
}
- if(term.line[*y][*x + direction].c[0] == ' ')
+ if(strchr(worddelimiters,
+ term.line[*y][*x + direction].c[0])) {
break;
+ }
*x += direction;
}