Revert "markclear"

This reverts commit 5e3a188618.
This commit is contained in:
Juris Majors committed 2019-06-22 23:57:35 +02:00
1 parent 5e3a188618
commit a7a3bfebbf
3 files changed
-21

No files matched your search

-1
View File
@@ -51,7 +51,6 @@ var (
"search-next",
"search-prev",
"mark-save",
"mark-clear",
"mark-load",
"sync",
"echo",
-19
View File
@@ -470,7 +470,6 @@ func insert(app *app, arg string) {
return
}
app.nav.marks[arg] = wd
case app.ui.cmdPrefix == "mark-load: ":
normal(app)
@@ -767,24 +766,6 @@ func (e *callExpr) eval(app *app, args []string) {
case "mark-load":
app.ui.menuBuf = listMarks(app.nav.marks)
app.ui.cmdPrefix = "mark-load: "
case "mark-clear":
if len(app.nav.marks) != 0 {
if (len(args) != 0) {
for _, v:= range args {
if _, ok := app.nav.marks[v]; ok {
delete(app.nav.marks, v)
}
}
} else {
app.ui.echoerrf("removing everything")
os.Create(gMarksPath)
app.nav.marks = make(map[string]string)
if err := remote("send mark-clear " + strings.Join(args[:], " ")); err != nil {
app.ui.echoerrf("remote mark-clear: %s", err)
return
}
}
}
case "sync":
if err := app.nav.sync(); err != nil {
app.ui.echoerrf("sync: %s", err)
-1
View File
@@ -113,7 +113,6 @@ func handleConn(c net.Conn) {
}
}
}
case "quit":
gQuitChan <- true
for _, c := range gConnList {