Save last_dir before jump

This commit is contained in:
Diogo Duarte
2025-02-23 22:30:33 +00:00
parent 023bde5a53
commit e2614a18fc

View File

@@ -272,15 +272,15 @@ return {
end
if action == "jump" then
if get_last_mode() == "jump" then
save_last_jump()
end
if bookmarks[selected].is_parent then
ya.manager_emit("cd", { bookmarks[selected].path })
else
ya.manager_emit("reveal", { bookmarks[selected].path })
end
if get_last_mode() == "jump" then
save_last_jump()
end
elseif action == "delete" then
delete_bookmark(selected)
end