-
-
Notifications
You must be signed in to change notification settings - Fork 982
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent multiple prompt resets in one execution cycle (#368)
* Update zsh-async to 1.6.0 for buffer status indicator * Prevent multiple prompt resets in one execution cycle The prompt ends up in a weird state when `zle reset-prompt` is called multiple times during one execution cycle. This can happen when multiple async tasks finish at nearly the same time. What happened here is that `async_process_results` called `prompt_pure_async_callback` multiple times during it's execution. In turn, `prompt_pure_async_callback` did multiple calls to `zle reset-prompt`. My theory is that ZLE ends up in a weird state that is reset after all the current code has completed executing. This behavior is observable when the prompt "moves upwards" and erases previous lines in the terminal. Fixes #356.
- Loading branch information
1 parent
f23e726
commit a3b22b2
Showing
2 changed files
with
22 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters