diff options
Diffstat (limited to 'src/ui/window_list.c')
-rw-r--r-- | src/ui/window_list.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/window_list.c b/src/ui/window_list.c index 408296c9..e506a957 100644 --- a/src/ui/window_list.c +++ b/src/ui/window_list.c @@ -1164,6 +1164,8 @@ wins_add_urls_ac(const ProfWin *const win, const ProfMessage *const message) gchar *word = g_match_info_fetch (match_info, 0); autocomplete_add(win->urls_ac, word); + // for people who run profanity a long time, we don't want to waste a lot of memory + autocomplete_remove_older_than_max(win->urls_ac, 20); g_free (word); g_match_info_next (match_info, NULL); |