Browse Source

fix(prompt): 修复 WSL 下 tmux status bar 显示重复的 BUG

dzp 1 năm trước cách đây
mục cha
commit
5204cb4157
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      plugins/lib/ui/prompt.tin

+ 2 - 1
plugins/lib/ui/prompt.tin

@@ -403,9 +403,10 @@ VAR {命令输入提示符} prompt-prompt {Input};
 
     #local prompt {$prompt-prompt};
     #if { "$prompt" != "" } {
-        #local prompt {$prompt};
         #echo {{$prompt}{-1}};
     };
+
+    #cursor {redraw input};
 };
 
 #func {__prompt_build_line__} {