aboutsummaryrefslogtreecommitdiff
path: root/search.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-02-08 17:57:17 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-02-08 17:57:17 +0000
commit79e054faff0d6d49d44ef0c1c052387eb66581d0 (patch)
tree8bcd3684097661804bd41d4aca4df5c268c4e1fc /search.c
parentMerge branch 'url-parser-recognize-percent' (diff)
parentkey-bindings: refactor: use a single type for all key bindings (diff)
Merge branch 'refactor-key-bindings'
Diffstat (limited to 'search.c')
-rw-r--r--search.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/search.c b/search.c
index 0391c281..4fde8a92 100644
--- a/search.c
+++ b/search.c
@@ -807,11 +807,11 @@ search_input(struct seat *seat, struct terminal *term, uint32_t key,
/* Key bindings */
tll_foreach(seat->kbd.bindings.search, it) {
- if (it->item.bind.mods != mods)
+ if (it->item.mods != mods)
continue;
/* Match symbol */
- if (it->item.bind.sym == sym) {
+ if (it->item.sym == sym) {
if (execute_binding(seat, term, it->item.action, serial,
&update_search_result, &redraw))
{
@@ -821,7 +821,7 @@ search_input(struct seat *seat, struct terminal *term, uint32_t key,
}
/* Match raw key code */
- tll_foreach(it->item.bind.key_codes, code) {
+ tll_foreach(it->item.key_codes, code) {
if (code->item == key) {
if (execute_binding(seat, term, it->item.action, serial,
&update_search_result, &redraw))