about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/command/cmd_funcs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c
index b061f9bf..8912c8cd 100644
--- a/src/command/cmd_funcs.c
+++ b/src/command/cmd_funcs.c
@@ -9294,6 +9294,8 @@ cmd_url_open(ProfWin* window, const char* const command, gchar** args)
     _url_external_method(cmd_template, url, NULL);
 
 out:
+    // reset autocompletion to start from latest url and not where we left of
+    autocomplete_reset(window->urls_ac);
 
     free(cmd_template);
     free(filename);
@@ -9350,6 +9352,8 @@ cmd_url_save(ProfWin* window, const char* const command, gchar** args)
     }
 
 out:
+    // reset autocompletion to start from latest url and not where we left of
+    autocomplete_reset(window->urls_ac);
 
     free(filename);
     free(cmd_template);