mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-30 05:40:58 +01:00
18539 and remaining bits of 18536???: vi and emacs options, autoload zle
This commit is contained in:
parent
62719196b2
commit
4e309d2cdd
3 changed files with 27 additions and 1 deletions
13
Src/init.c
13
Src/init.c
|
|
@ -1122,11 +1122,12 @@ mod_export ZleVoidFn refreshptr = noop_function;
|
|||
mod_export ZleVoidIntFn spaceinlineptr = noop_function_int;
|
||||
# ifdef UNLINKED_XMOD_zshQszle
|
||||
mod_export ZleReadFn zlereadptr = autoload_zleread;
|
||||
mod_export ZleVoidIntFn zlesetkeymapptr = autoload_zlesetkeymap;
|
||||
# else /* !UNLINKED_XMOD_zshQszle */
|
||||
mod_export ZleReadFn zlereadptr = fallback_zleread;
|
||||
mod_export ZleVoidIntFn zlesetkeymapptr = noop_function_int;
|
||||
# endif /* !UNLINKED_XMOD_zshQszle */
|
||||
|
||||
mod_export ZleVoidIntFn zlesetkeymapptr = noop_function_int;
|
||||
#endif /* !LINKED_XMOD_zshQszle */
|
||||
|
||||
/**/
|
||||
|
|
@ -1153,6 +1154,16 @@ fallback_zleread(char *lp, char *rp, int ha)
|
|||
return (unsigned char *)shingetline();
|
||||
}
|
||||
|
||||
/**/
|
||||
static void
|
||||
autoload_zlesetkeymap(int mode)
|
||||
{
|
||||
zlesetkeymapptr = noop_function_int;
|
||||
load_module("zsh/zle");
|
||||
(*zlesetkeymapptr)(mode);
|
||||
}
|
||||
|
||||
|
||||
/* compctl entry point pointers. Similar to the ZLE ones. */
|
||||
|
||||
/**/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue