diff --git a/osc.go b/osc.go index 3d8e0688..d5d4f0dd 100644 --- a/osc.go +++ b/osc.go @@ -31,7 +31,7 @@ func (t *Terminal) handleOSC(code string) { func (t *Terminal) setDirectory(uri string) { u, err := storage.ParseURI(uri) - if err == nil { + if err != nil { // working around a Fyne bug where file URI does not parse host off := 4 count := 0