aboutsummarylogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorChristoph Lohmann2013-05-04 19:04:20 +0200
committerChristoph Lohmann2013-05-04 19:04:20 +0200
commit8304579157aee84ad6beb881fd630a7b80951d6c (patch)
treedd3ff5a4f8cfc77afde28b3fe02c46cb816e2a5a /st.c
parent722c3ca7af67fefe1e837dcd57d5d725756af763 (diff)
downloadaur-8304579157aee84ad6beb881fd630a7b80951d6c.tar.gz
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 0f47d6df704b..5251e7066090 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;
}