summaryrefslogtreecommitdiff
path: root/Src/Zle/zle_keymap.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-01-19 17:57:43 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-01-19 17:57:43 +0000
commit46cdeb71b7c8dae7517ef832130049dc1e821cb6 (patch)
treec11b0fc3b9fef873d86fcfff1455d27b4dab295e /Src/Zle/zle_keymap.c
parent8541ccb842c27c8e8ff14e4e0718f7b14efee0b2 (diff)
downloadzsh-46cdeb71b7c8dae7517ef832130049dc1e821cb6.tar.gz
zsh-46cdeb71b7c8dae7517ef832130049dc1e821cb6.zip
26366: add "isearch" keymap and "accept-search" functino
Diffstat (limited to 'Src/Zle/zle_keymap.c')
-rw-r--r--Src/Zle/zle_keymap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Src/Zle/zle_keymap.c b/Src/Zle/zle_keymap.c
index 9dac62049..30c747900 100644
--- a/Src/Zle/zle_keymap.c
+++ b/Src/Zle/zle_keymap.c
@@ -1176,6 +1176,8 @@ default_bindings(void)
char buf[3], *ed;
int i;
+ isearch_keymap = newkeymap(NULL, "isearch");
+
/* vi insert mode and emacs mode: *
* 0-31 taken from the tables *
* 32-126 self-insert *
@@ -1274,6 +1276,8 @@ default_bindings(void)
else
linkkeymap(emap, "main", 0);
+ linkkeymap(isearch_keymap, "isearch", 0);
+
/* the .safe map cannot be modified or deleted */
smap->flags |= KM_IMMUTABLE;
}