aboutsummaryrefslogtreecommitdiff
path: root/selection.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-12-03 19:01:53 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-12-03 19:01:53 +0000
commitba399fa874ad172d09f0b4d291f554374d19d6e0 (patch)
tree1d2611bd108a7442f4794578ce5a0ac2844dcd81 /selection.c
parentinput: discard canceled compose sequences (diff)
parentsearch: bug: re-initialize start-row when attempting a new match (diff)
Merge branch 'scrollback-search-extend-to-end-of-word'
Diffstat (limited to 'selection.c')
-rw-r--r--selection.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/selection.c b/selection.c
index b77dc64a..bbe990d7 100644
--- a/selection.c
+++ b/selection.c
@@ -15,6 +15,7 @@
#include "async.h"
#include "grid.h"
+#include "misc.h"
#include "render.h"
#include "vt.h"
@@ -222,27 +223,6 @@ selection_cancel(struct terminal *term)
}
}
-static bool
-isword(wint_t c, bool spaces_only)
-{
- if (spaces_only)
- return !iswspace(c);
-
- switch (c) {
- default: return !iswspace(c);
-
- case L'{': case L'}':
- case L'[': case L']':
- case L'(': case L')':
- case L'`':
- case L'\'':
- case L'"':
- case L',': case L'.':
- case L':': case L';':
- return false;
- }
-}
-
void
selection_mark_word(struct terminal *term, int col, int row, bool spaces_only,
uint32_t serial)