diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-08-09 10:02:08 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-08-09 10:02:08 +0000 |
commit | c73dd460190ca602114503d8dea3171165ff099e (patch) | |
tree | 1e398be5a08cf032dbddbd18b88e045c92752d91 /Src/Zle/zle_main.c | |
parent | aa638fec26a316b00ebbb2f5f620faf600b8f6ae (diff) | |
download | zsh-c73dd460190ca602114503d8dea3171165ff099e.tar.gz zsh-c73dd460190ca602114503d8dea3171165ff099e.tar.xz zsh-c73dd460190ca602114503d8dea3171165ff099e.zip |
Fixes from Thorsten Dahlheimer.
21578: mkmakemod.sh didn't exit on cleanup. 21582: fix failure status of zmodload -R. 21583: fix circularity test of zmodload -A.
Diffstat (limited to 'Src/Zle/zle_main.c')
-rw-r--r-- | Src/Zle/zle_main.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c index e6f83cb3e..1acff3bbb 100644 --- a/Src/Zle/zle_main.c +++ b/Src/Zle/zle_main.c @@ -1481,6 +1481,17 @@ resetprompt(UNUSED(char **args)) return redisplay(NULL); } +/* same bug called from outside zle */ + +/**/ +mod_export void +zle_resetprompt(void) +{ reexpandprompt(); + if (zleactive) + redisplay(NULL); +} + + /**/ mod_export void trashzle(void) @@ -1572,6 +1583,7 @@ setup_(UNUSED(Module m)) { /* Set up editor entry points */ trashzleptr = trashzle; + zle_resetpromptptr = zle_resetprompt; zrefreshptr = zrefresh; zleaddtolineptr = zleaddtoline; zlegetlineptr = zlegetline; @@ -1659,6 +1671,7 @@ finish_(UNUSED(Module m)) /* editor entry points */ trashzleptr = noop_function; + zle_resetpromptptr = noop_function; zrefreshptr = noop_function; zleaddtolineptr = noop_function_int; zlegetlineptr = NULL; |