mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 00:10:08 +00:00
don't use href when the terminal is known to print garbage on it
This commit is contained in:
+5
-1
@@ -153,7 +153,11 @@ function print_prompt() {
|
||||
|
||||
function href() {
|
||||
local url=${${1//\%/%%}//\\/\\\\}
|
||||
print -r -- '%{\e]8;;'$url'\e\\%}'$url'%{\e]8;;\e\\%}'
|
||||
if (( _p9k_term_has_href )); then
|
||||
print -r -- '%{\e]8;;'$url'\e\\%}'$url'%{\e]8;;\e\\%}'
|
||||
else
|
||||
print -r -- $url
|
||||
fi
|
||||
}
|
||||
|
||||
function flowing() {
|
||||
|
||||
Reference in New Issue
Block a user