mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-20 18:29:19 +03:00
* widget.c (history_get): Use list_append_unique() for backward
compatibility.
This commit is contained in:
parent
f95d276250
commit
bd19828876
@ -1,5 +1,8 @@
|
|||||||
2003-02-18 Pavel Roskin <proski@gnu.org>
|
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
|
* main.c (directory_history_list): Allow history command even
|
||||||
with just one entry - it's more intuitive.
|
with just one entry - it's more intuitive.
|
||||||
|
|
||||||
|
@ -825,7 +825,7 @@ history_get (char *input_name)
|
|||||||
if (!*this_entry)
|
if (!*this_entry)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
hist = g_list_append (hist, g_strdup (this_entry));
|
hist = list_append_unique (hist, g_strdup (this_entry));
|
||||||
}
|
}
|
||||||
g_free (profile);
|
g_free (profile);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user