diff options
| author | Oliver Kiddle <okiddle@yahoo.co.uk> | 2025-11-10 21:02:31 +0100 |
|---|---|---|
| committer | Oliver Kiddle <opk@zsh.org> | 2025-11-10 21:02:31 +0100 |
| commit | 6a691a3487cc26900475291ced12400318176aeb (patch) | |
| tree | ba5f16395098b632fe16369e684eaaf18e05faed /Src/init.c | |
| parent | 53379, 53380: autoload nearcolor based on truecolor detection (diff) | |
| download | zsh-6a691a3487cc26900475291ced12400318176aeb.tar zsh-6a691a3487cc26900475291ced12400318176aeb.tar.gz zsh-6a691a3487cc26900475291ced12400318176aeb.tar.bz2 zsh-6a691a3487cc26900475291ced12400318176aeb.tar.lz zsh-6a691a3487cc26900475291ced12400318176aeb.tar.xz zsh-6a691a3487cc26900475291ced12400318176aeb.tar.zst zsh-6a691a3487cc26900475291ced12400318176aeb.zip | |
53404: terminal integration with semantic markers
Diffstat (limited to 'Src/init.c')
| -rw-r--r-- | Src/init.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Src/init.c b/Src/init.c index dfef860f7..dea52202e 100644 --- a/Src/init.c +++ b/Src/init.c @@ -213,12 +213,17 @@ loop(int toplevel, int justonce) */ errflag &= ~ERRFLAG_ERROR; } + if (toplevel && zle_load_state == 1) + zleentry(ZLE_CMD_PREEXEC); if (stopmsg) /* unset 'you have stopped jobs' flag */ stopmsg--; execode(prog, 0, 0, toplevel ? "toplevel" : "file"); tok = toksav; - if (toplevel) + if (toplevel) { noexitct = 0; + if (zle_load_state == 1) + zleentry(ZLE_CMD_POSTEXEC); + } } if (ferror(stderr)) { zerr("write error"); @@ -1803,7 +1808,7 @@ VA_DCL lp = va_arg(ap, char **); - pptbuf = unmetafy(promptexpand(lp ? *lp : NULL, 0, NULL, NULL), + pptbuf = unmetafy(promptexpand(lp ? *lp : NULL, 0, NULL, NULL, NULL), &pptlen); write_loop(2, pptbuf, pptlen); free(pptbuf); |
