mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-16 14:41:02 +02:00
25384: fix problem with incorrect autoloads of zsh/zle
This commit is contained in:
parent
6e4adee615
commit
4fc027edf0
2 changed files with 19 additions and 8 deletions
|
@ -1,5 +1,8 @@
|
|||
2008-08-04 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 25384: Src/init.c: fix problem with autoload of zsh/zle
|
||||
for warning message at boot.
|
||||
|
||||
* users/13093: Src/module.c: HashNode changes didn't
|
||||
get propagated to AIX-specific code.
|
||||
|
||||
|
|
|
@ -1206,6 +1206,13 @@ VA_DCL
|
|||
/* autoload */
|
||||
switch (zle_load_state) {
|
||||
case 0:
|
||||
/*
|
||||
* Some commands don't require us to load ZLE.
|
||||
* These also have no fallback.
|
||||
*/
|
||||
if (cmd != ZLE_CMD_TRASH && cmd != ZLE_CMD_RESET_PROMPT &&
|
||||
cmd != ZLE_CMD_REFRESH)
|
||||
{
|
||||
if (load_module("zsh/zle", NULL, 0) != 1) {
|
||||
(void)load_module("zsh/compctl", NULL, 0);
|
||||
ret = zle_entry_ptr(cmd, ap);
|
||||
|
@ -1215,6 +1222,7 @@ VA_DCL
|
|||
zle_load_state = 2;
|
||||
/* Execute fallback code below */
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case 1:
|
||||
|
|
Loading…
Reference in a new issue