From 8e968739c3cfc4e9f7088a9ea360bc4f37e9ad9f Mon Sep 17 00:00:00 2001 From: Christoph Lohmann <20h@r-36.net> Date: Sat, 4 May 2013 19:04:20 +0200 Subject: Allow more complex delimiters for word selections. Thanks Alexander Rezinsky ! --- st.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'st.c') 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; } -- cgit v1.2.3-54-g00ecf