aboutsummarylogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorLauri Tirkkonen2019-03-13 17:15:04 +0200
committerHiltjo Posthuma2019-03-15 12:25:13 +0100
commit7ac63528f9315c9f0b0834c6c37ef3739768d6e3 (patch)
tree4e80c219b49b7b5b25c2891121f75e33a4f5d33b /config.def.h
parent999251bc7c6e7fdc82ff3e9f18c880b264f7dfcb (diff)
downloadaur-7ac63528f9315c9f0b0834c6c37ef3739768d6e3.tar.gz
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.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/config.def.h b/config.def.h
index 482901ea4167..9ce45a7c84ad 100644
--- a/config.def.h
+++ b/config.def.h
@@ -28,11 +28,12 @@ static float cwscale = 1.0;
static float chscale = 1.0;
/*
- * word delimiter string
+ * all space and punctuation characters are considered word delimiters, unless
+ * listed here.
*
- * More advanced example: L" `'\"()[]{}"
+ * More advanced example: L"#$%&+,-./:=?_~"
*/
-wchar_t *worddelimiters = L" ";
+wchar_t *extrawordchars = L"./:";
/* selection timeouts (in milliseconds) */
static unsigned int doubleclicktimeout = 300;