Skip to content

Commit

Permalink
Fix possible crash when URI parse fails
Browse files Browse the repository at this point in the history
Fixes #40
  • Loading branch information
andydotxyz committed Jan 9, 2024
1 parent 1c9d526 commit 11c68aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 11c68aa

Please sign in to comment.