OSC 7: also escape hostname

I think gethostname() is not guaranteed to return only URL-safe
characters, so better safe than sorry.
This commit is contained in:
Johannes Altmanninger
2026-01-09 09:41:38 +01:00
parent 917fb024ea
commit b5bf9d17e3

View File

@@ -149,7 +149,7 @@ function __fish_config_interactive -d "Initializations that should be performed
if [ "$TERM" = dumb ]
return
end
printf \e\]7\;file://%s%s\a $host (string escape --style=url -- $PWD)
printf \e\]7\;file://%s%s\a (string escape --style=url -- $host $PWD)
end
end
__fish_update_cwd_osc # Run once because we might have already inherited a PWD from an old tab