Skip to content

Commit

Permalink
Final partial lines were not being displayed (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
agkozak committed Sep 5, 2024
1 parent 617fc2e commit 4a2f8bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ This prompt has been tested on numerous Linux and BSD distributions, as well as
<details>
<summary>Here are the latest features and updates.</summary>

- v3.11.4
+ An oversight in the function `prompt_agkozak-zsh-prompt_setup` was preventing final partial lines from being displayed ([#46](https://github.com/agkozak/agkozak-zsh-prompt/issues/46)). Many thanks to Josh Rosen for jogging my memory of default Zsh handling of such situations.
- v3.11.3
+ [A bug was fixed in Zsh 5.8 itself](https://www.zsh.org/mla/workers/2019/msg00252.html) that had required the `subst-async` method to do extra forking as a workaround. The code for `subst-async` has been updated to reflect the bug fix. The majority of users default to the `usr1` async method, however, which is unaffected.
- v3.11.2
Expand Down
6 changes: 3 additions & 3 deletions agkozak-zsh-prompt.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -1005,9 +1005,9 @@ _agkozak_prompt_strings() {
prompt_agkozak-zsh-prompt_setup() {
# `emulate -L zsh' has been removed for promptinit
# compatibility
typeset -g prompt_opts
prompt_opts=( percent subst )
setopt NO_PROMPT_{BANG,CR,PERCENT,SUBST} "PROMPT_${^prompt_opts[@]}"
typeset -ga prompt_opts
prompt_opts=( cr percent sp subst )
setopt NO_PROMPT_{BANG,PERCENT,SUBST} "PROMPT_${^prompt_opts[@]}"

_agkozak_async_init

Expand Down

0 comments on commit 4a2f8bf

Please sign in to comment.