cleanup
This commit is contained in:
1 parent
7b1236f57a
commit
6e869bfa0e
3 files changed
+5
-3
No files matched your search
@@ -580,7 +580,9 @@ func (nav *nav) put() error {
|
|||||||
return fmt.Errorf("putting files: %s", err)
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import (
|
|||||||
var (
|
var (
|
||||||
gCopyFile bool
|
gCopyFile bool
|
||||||
gFileList []string
|
gFileList []string
|
||||||
gConnList map[int]net.Conn = make(map[int]net.Conn)
|
gConnList = make(map[int]net.Conn)
|
||||||
)
|
)
|
||||||
|
|
||||||
func serve() {
|
func serve() {
|
||||||
|
|||||||
@@ -563,7 +563,7 @@ func (ui *ui) drawPromptLine(nav *nav) {
|
|||||||
if printLength(strings.Replace(prompt, "%w", pwd, -1)) > ui.promptWin.w {
|
if printLength(strings.Replace(prompt, "%w", pwd, -1)) > ui.promptWin.w {
|
||||||
sep := string(filepath.Separator)
|
sep := string(filepath.Separator)
|
||||||
names := strings.Split(pwd, sep)
|
names := strings.Split(pwd, sep)
|
||||||
for i, _ := range names {
|
for i := range names {
|
||||||
r, _ := utf8.DecodeRuneInString(names[i])
|
r, _ := utf8.DecodeRuneInString(names[i])
|
||||||
names[i] = string(r)
|
names[i] = string(r)
|
||||||
if printLength(strings.Replace(prompt, "%w", strings.Join(names, sep), -1)) <= ui.promptWin.w {
|
if printLength(strings.Replace(prompt, "%w", strings.Join(names, sep), -1)) <= ui.promptWin.w {
|
||||||
|
|||||||
Reference in new issue
Block a user