diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-10-10 11:02:12 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-10-10 11:02:12 +0000 |
| commit | b308e09261f788e5b004c79e72f907b207d7f37c (patch) | |
| tree | 55a372d7c4289e5f83dc354ad04c532cb98db762 /search.c | |
| parent | shm: MAP_UNINITIALIZED is a linux only mmap flag (diff) | |
| parent | doc: foot.ini: word-delimiters: whitespace chars are always delimiters (diff) | |
Merge branch 'configurable-word-delimiters' into master
Closes #156
Diffstat (limited to 'search.c')
| -rw-r--r-- | search.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -10,6 +10,7 @@ #define LOG_MODULE "search" #define LOG_ENABLE_DBG 0 #include "log.h" +#include "config.h" #include "grid.h" #include "input.h" #include "misc.h" @@ -368,7 +369,7 @@ search_match_to_end_of_word(struct terminal *term, bool spaces_only) bool done = false; for (; end_col < term->cols; end_col++) { wchar_t wc = row->cells[end_col].wc; - if (wc == 0 || (!first && !isword(wc, spaces_only))) { + if (wc == 0 || (!first && !isword(wc, spaces_only, term->conf->word_delimiters))) { done = true; break; } |
