Escape file/folder name in tab for #202

This commit is contained in:
makeworld 2022-04-25 20:14:32 -04:00
parent 3917402e2d
commit 99fbd021a6
1 changed files with 1 additions and 1 deletions

View File

@ -547,7 +547,7 @@ func (t *tab) label() string {
}
if strings.HasPrefix(t.page.URL, "file://") {
// File URL, use file or folder as tab name
return path.Base(t.page.URL[7:])
return cview.Escape(path.Base(t.page.URL[7:]))
}
// Otherwise, it's a Gemini URL
pu, err := url.Parse(t.page.URL)