use iswspace()/iswpunct() to find word delimiters

this inverts the configuration logic: you no longer provide a list of
delimiters -- all space and punctuation characters are considered
delimiters, unless listed in extrawordchars.
This commit is contained in:
Lauri Tirkkonen
2019-03-13 17:15:04 +02:00
committed by Hiltjo Posthuma
parent d5efd256aa
commit add0211522
3 changed files with 7 additions and 5 deletions

2
st.h
View File

@ -114,7 +114,7 @@ char *xstrdup(char *);
extern char *utmp;
extern char *stty_args;
extern char *vtiden;
extern wchar_t *worddelimiters;
extern wchar_t *extrawordchars;
extern int allowaltscreen;
extern char *termname;
extern unsigned int tabspaces;