Skip to content

Commit

Permalink
fix: Clear dirstack when dir starts with /
Browse files Browse the repository at this point in the history
  • Loading branch information
devkcud committed Feb 19, 2024
1 parent 0532199 commit 172e0cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/mk/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func main() {
}

if strings.HasPrefix(dir, "/") {
dirstack = nil
dirstack = append(dirstack, "/")
}

Expand Down

0 comments on commit 172e0cf

Please sign in to comment.