Reload file info after mark-save/mark-remove (#1544)
This commit is contained in:
1 parent
12ce649681
commit
27cbf9403c
1 file changed
+7
@@ -1451,16 +1451,20 @@ func insert(app *app, arg string) {
|
|||||||
app.nav.marks[arg] = app.nav.currDir().path
|
app.nav.marks[arg] = app.nav.currDir().path
|
||||||
if err := app.nav.writeMarks(); err != nil {
|
if err := app.nav.writeMarks(); err != nil {
|
||||||
app.ui.echoerrf("mark-save: %s", err)
|
app.ui.echoerrf("mark-save: %s", err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
if gSingleMode {
|
if gSingleMode {
|
||||||
if err := app.nav.sync(); err != nil {
|
if err := app.nav.sync(); err != nil {
|
||||||
app.ui.echoerrf("mark-save: %s", err)
|
app.ui.echoerrf("mark-save: %s", err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if err := remote("send sync"); err != nil {
|
if err := remote("send sync"); err != nil {
|
||||||
app.ui.echoerrf("mark-save: %s", err)
|
app.ui.echoerrf("mark-save: %s", err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
app.ui.loadFileInfo(app.nav)
|
||||||
case app.ui.cmdPrefix == "mark-load: ":
|
case app.ui.cmdPrefix == "mark-load: ":
|
||||||
normal(app)
|
normal(app)
|
||||||
|
|
||||||
@@ -1505,12 +1509,15 @@ func insert(app *app, arg string) {
|
|||||||
if gSingleMode {
|
if gSingleMode {
|
||||||
if err := app.nav.sync(); err != nil {
|
if err := app.nav.sync(); err != nil {
|
||||||
app.ui.echoerrf("mark-remove: %s", err)
|
app.ui.echoerrf("mark-remove: %s", err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if err := remote("send sync"); err != nil {
|
if err := remote("send sync"); err != nil {
|
||||||
app.ui.echoerrf("mark-remove: %s", err)
|
app.ui.echoerrf("mark-remove: %s", err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
app.ui.loadFileInfo(app.nav)
|
||||||
case app.ui.cmdPrefix == ":" && len(app.ui.cmdAccLeft) == 0:
|
case app.ui.cmdPrefix == ":" && len(app.ui.cmdAccLeft) == 0:
|
||||||
switch arg {
|
switch arg {
|
||||||
case "!", "$", "%", "&":
|
case "!", "$", "%", "&":
|
||||||
|
|||||||
Reference in new issue
Block a user