Skip to content

Commit 4a2f8bf

Browse files
committed
Final partial lines were not being displayed (#46)
1 parent 617fc2e commit 4a2f8bf

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ This prompt has been tested on numerous Linux and BSD distributions, as well as
5858
<details>
5959
<summary>Here are the latest features and updates.</summary>
6060

61+
- v3.11.4
62+
+ 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.
6163
- v3.11.3
6264
+ [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.
6365
- v3.11.2

agkozak-zsh-prompt.plugin.zsh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1005,9 +1005,9 @@ _agkozak_prompt_strings() {
10051005
prompt_agkozak-zsh-prompt_setup() {
10061006
# `emulate -L zsh' has been removed for promptinit
10071007
# compatibility
1008-
typeset -g prompt_opts
1009-
prompt_opts=( percent subst )
1010-
setopt NO_PROMPT_{BANG,CR,PERCENT,SUBST} "PROMPT_${^prompt_opts[@]}"
1008+
typeset -ga prompt_opts
1009+
prompt_opts=( cr percent sp subst )
1010+
setopt NO_PROMPT_{BANG,PERCENT,SUBST} "PROMPT_${^prompt_opts[@]}"
10111011

10121012
_agkozak_async_init
10131013

0 commit comments

Comments
 (0)