X-Git-Url: https://git.xinqibao.xyz/st.git/blobdiff_plain/0c2b513d01697aea20bb4a2a144b55e72c625e86..8e968739c3cfc4e9f7088a9ea360bc4f37e9ad9f:/st.c?ds=inline 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; }