This commit is contained in:
Gokcehan committed 2018-03-22 17:54:24 +03:00
1 parent 7b1236f57a
commit 6e869bfa0e
3 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -563,7 +563,7 @@ func (ui *ui) drawPromptLine(nav *nav) {
if printLength(strings.Replace(prompt, "%w", pwd, -1)) > ui.promptWin.w {
sep := string(filepath.Separator)
names := strings.Split(pwd, sep)
for i, _ := range names {
for i := range names {
r, _ := utf8.DecodeRuneInString(names[i])
names[i] = string(r)
if printLength(strings.Replace(prompt, "%w", strings.Join(names, sep), -1)) <= ui.promptWin.w {