summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2022-09-07 14:20:59 +0100
committerPhil Jones <philj56@gmail.com>2022-09-07 14:34:39 +0100
commitadc683b7fa847bc1776e3bece532c39aff12b039 (patch)
tree73e1550421a7833c5d9d843c7bcdf1a070fdc7ef /src/main.c
parente72f81799b1184d6b1b1bf8f70ec32d9cc139556 (diff)
Allow space-separated, per-word matches.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index fa4ca48..dae7e12 100644
--- a/src/main.c
+++ b/src/main.c
@@ -158,7 +158,7 @@ static void handle_keypress(struct tofi *tofi, xkb_keycode_t keycode)
sizeof(buf));
wchar_t ch;
mbtowc(&ch, buf, sizeof(buf));
- if (len > 0 && iswprint(ch) && (entry->drun || !iswblank(ch))) {
+ if (len > 0 && iswprint(ch)) {
if (entry->input_length < N_ELEM(entry->input) - 1) {
entry->input[entry->input_length] = ch;
entry->input_length++;