diff --git a/README.md b/README.md index 45e3d19..3f1fcb9 100644 --- a/README.md +++ b/README.md @@ -88,11 +88,11 @@ There's also the option to enable persistence to this automatic bookmark. Finally, there's a `mode` option with the following options: -| Value | Description | -| ------ | --------------------------------------------------- | -| `jump` | Default, It saves the last used mark | -| `mark` | It saves the last created mark | -| `dir` | It saves the last visited directory (old behaviour) | +| Value | Description | +| ------ | ------------------------------------------------------------ | +| `jump` | It saves the position before the last used mark | +| `mark` | It saves the last created mark | +| `dir` | Default, it saves the last visited directory (old behaviour) | ### `persist` diff --git a/main.lua b/main.lua index d5fde92..1b193b6 100644 --- a/main.lua +++ b/main.lua @@ -313,14 +313,15 @@ return { elseif args.last_directory.mode == "jump" then state.last_persist = args.last_directory.persist state.last_mode = "jump" - elseif args.last_directory.mode == "jump" then + elseif args.last_directory.mode == "dir" then state.last_persist = args.last_directory.persist state.last_mode = "dir" save_last_dir() else -- default state.last_persist = args.last_directory.persist - state.last_mode = "jump" + state.last_mode = "dir" + save_last_dir() end if args.last_directory.persist then