use filepath module instead of path for portability

This should fix path separator confusion in windows.

Mentioned in #12.
This commit is contained in:
Gokcehan committed 2016-09-07 00:27:55 +03:00
1 parent 90c282e1ec
commit 3d493e8271
5 files changed
+26 -26

No files matched your search

+2 -2
View File
@@ -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, " ")