use filepath module instead of path for portability
This should fix path separator confusion in windows. Mentioned in #12.
This commit is contained in:
1 parent
90c282e1ec
commit
3d493e8271
5 files changed
+26
-26
No files matched your search
@@ -8,7 +8,7 @@ import (
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
@@ -186,7 +186,7 @@ func (win *Win) printd(dir *Dir, marks map[string]bool) {
|
||||
fg = termbox.ColorWhite
|
||||
}
|
||||
|
||||
path := path.Join(dir.path, f.Name())
|
||||
path := filepath.Join(dir.path, f.Name())
|
||||
|
||||
if marks[path] {
|
||||
win.print(0, i, fg, termbox.ColorMagenta, " ")
|
||||
|
||||
Reference in new issue
Block a user