diff options
author | Christoph Lohmann | 2013-05-04 19:04:20 +0200 |
---|---|---|
committer | Christoph Lohmann | 2013-05-04 19:04:20 +0200 |
commit | 8304579157aee84ad6beb881fd630a7b80951d6c (patch) | |
tree | dd3ff5a4f8cfc77afde28b3fe02c46cb816e2a5a /st.c | |
parent | 722c3ca7af67fefe1e837dcd57d5d725756af763 (diff) | |
download | aur-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |