mirror of
https://github.com/makew0rld/amfora.git
synced 2024-09-11 05:55:27 +03:00
Escape file/folder name in tab for #202
This commit is contained in:
parent
3917402e2d
commit
99fbd021a6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user