Skip to content

Commit

Permalink
Merge pull request #502 from wassup05/windows-parent-dir
Browse files Browse the repository at this point in the history
fix: parent dir on windows
  • Loading branch information
yorukot authored Dec 3, 2024
2 parents 005fa65 + 82a00b4 commit ec13205
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/internal/handle_panel_movement.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"fmt"
"os"
"os/exec"
"path"
"path/filepath"
"runtime"

Expand All @@ -31,7 +30,7 @@ func (m *model) parentDirectory() {
directoryRender: panel.render,
}
fullPath := panel.location
parentDir := path.Dir(fullPath)
parentDir := filepath.Dir(fullPath)
panel.location = parentDir
directoryRecord, hasRecord := panel.directoryRecord[panel.location]
if hasRecord {
Expand Down

0 comments on commit ec13205

Please sign in to comment.