浏览代码

fix(async): fix crash on zsh < 5.0.6 (#12358)

Marc Cornellà 1 月之前
父节点
当前提交
f78c6b90fc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/async_prompt.zsh

+ 1 - 1
lib/async_prompt.zsh

@@ -124,7 +124,7 @@ function _omz_async_callback() {
 
     # Repaint prompt if output has changed
     if [[ "$old_output" != "${_OMZ_ASYNC_OUTPUT[$handler]}" ]]; then
-      zle reset-prompt
+      zle .reset-prompt
       zle -R
     fi