From 82a00b4a408350e351469e163b4a790cfccf66ec Mon Sep 17 00:00:00 2001 From: "supritsj@Arch" Date: Mon, 2 Dec 2024 14:14:00 +0530 Subject: [PATCH] fix parent dir func on windows --- src/internal/handle_panel_movement.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/internal/handle_panel_movement.go b/src/internal/handle_panel_movement.go index 69b44efb..a2e35e25 100644 --- a/src/internal/handle_panel_movement.go +++ b/src/internal/handle_panel_movement.go @@ -4,7 +4,6 @@ import ( "fmt" "os" "os/exec" - "path" "path/filepath" "runtime" @@ -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 {