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

+3 -1
View File
@@ -580,7 +580,9 @@ func (nav *nav) put() error {
return fmt.Errorf("putting files: %s", err)
}
saveFiles(nil, false)
if err := saveFiles(nil, false); err != nil {
return fmt.Errorf("clearing yank/delete buffer: %s", err)
}
return nil
}
+1 -1
View File
@@ -12,7 +12,7 @@ import (
var (
gCopyFile bool
gFileList []string
gConnList map[int]net.Conn = make(map[int]net.Conn)
gConnList = make(map[int]net.Conn)
)
func serve() {
+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 {