* widget.c (history_get): Use list_append_unique() for backward

compatibility.
This commit is contained in:
Pavel Roskin 2003-02-18 06:29:43 +00:00
parent f95d276250
commit bd19828876
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2003-02-18 Pavel Roskin <proski@gnu.org>
* widget.c (history_get): Use list_append_unique() for backward
compatibility.
* main.c (directory_history_list): Allow history command even
with just one entry - it's more intuitive.

View File

@ -825,7 +825,7 @@ history_get (char *input_name)
if (!*this_entry)
break;
hist = g_list_append (hist, g_strdup (this_entry));
hist = list_append_unique (hist, g_strdup (this_entry));
}
g_free (profile);