From 82e24f7e9467a35fbc35e98775146c542d237b16 Mon Sep 17 00:00:00 2001 From: Hajime Nakagami Date: Mon, 12 Aug 2024 09:44:51 +0900 Subject: [PATCH] :edit # --- pyvim/commands/commands.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyvim/commands/commands.py b/pyvim/commands/commands.py index 441d989..917fbdd 100644 --- a/pyvim/commands/commands.py +++ b/pyvim/commands/commands.py @@ -279,6 +279,8 @@ def buffer_edit(editor, location, force=False): else: eb.reload() else: + if len(editor.location_history) > 1: + location = location.replace("#", editor.location_history[-2]) editor.file_explorer = '' editor.window_arrangement.open_buffer(location, show_in_current_window=True)