mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-29 15:16:21 +00:00
Reset url autocompletion after open/save
I guess we should reset the position after we ran `/url open|save`. So that next time `/url open <tab>` starts with the latest entry. Fix https://github.com/profanity-im/profanity/issues/1654
This commit is contained in:
@@ -9292,6 +9292,8 @@ cmd_url_open(ProfWin* window, const char* const command, gchar** args)
|
|||||||
_url_external_method(cmd_template, url, NULL);
|
_url_external_method(cmd_template, url, NULL);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
// reset autocompletion to start from latest url and not where we left of
|
||||||
|
autocomplete_reset(window->urls_ac);
|
||||||
|
|
||||||
free(cmd_template);
|
free(cmd_template);
|
||||||
free(filename);
|
free(filename);
|
||||||
@@ -9348,6 +9350,8 @@ cmd_url_save(ProfWin* window, const char* const command, gchar** args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
// reset autocompletion to start from latest url and not where we left of
|
||||||
|
autocomplete_reset(window->urls_ac);
|
||||||
|
|
||||||
free(filename);
|
free(filename);
|
||||||
free(cmd_template);
|
free(cmd_template);
|
||||||
|
|||||||
Reference in New Issue
Block a user