mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-18 04:26:45 +08:00
znt: optimizations for zsh<=5.2, use $BUFFER if cmd is not from history
This commit is contained in:
1 parent
d30a501b1c
commit
77f93f61c5
7 files changed
+25
-12
No files matched your search
@@ -98,7 +98,7 @@ shift 7
|
||||
integer max_text_len=page_width-x_offset
|
||||
|
||||
[ "$bold" = "0" ] && bold="" || bold="+bold"
|
||||
[[ "$active_text" = "underline" || "$active_text" = "reverse" ]] || active_text="reverse"
|
||||
[[ "$active_text" = "underline" || "$active_text" = "reverse" ]] || local active_text="reverse"
|
||||
# With Linux terminal underline won't work properly
|
||||
[ "$TERM" = "linux" ] && active_text="reverse"
|
||||
|
||||
|
||||
Reference in new issue
Block a user