Hi. Here is a patch which adds a new configuration option: history_show_duplicates The option specifies whether the history panels will show duplicate entries more than once. The default is to show the duplicates (which is how mc works now). It's not possible to set the option in the configuration menu. The patch includes update of the manpage. This update also adds missing information on the "num_history_items_recorded" option. These files were modified: src/setup.c src/widget.c doc/mc.1.in -- Tomas Styblo <tripie cpan org> PGP: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xC97EA4B6 "People demand freedom of speech as a compensation for the freedom of thought which they seldom use." -Kierkegaard
diff -purN mc-4.6.0-pre1/doc/mc.1.in mc-4.6.0-pre1.new/doc/mc.1.in --- mc-4.6.0-pre1/doc/mc.1.in Wed Aug 21 03:08:46 2002 +++ mc-4.6.0-pre1.new/doc/mc.1.in Sun Nov 24 08:24:03 2002 @@ -2990,6 +2990,15 @@ passive open mode for transferring files are behind a filtering packet router. This option just works if you are not using an ftp proxy. .PP +.I num_history_items_recorded +.IP +This value specifies maximum number of items recorded in history. +.PP +.I history_show_duplicates +.IP +This option is on by default. It specifies whether the history panels +will show duplicate entries more than once. +.PP .I max_dirt_limit. .IP Specifies how many screen updates can be skipped at most in the internal diff -purN mc-4.6.0-pre1/src/setup.c mc-4.6.0-pre1.new/src/setup.c --- mc-4.6.0-pre1/src/setup.c Mon Aug 19 06:16:47 2002 +++ mc-4.6.0-pre1.new/src/setup.c Sun Nov 24 08:23:34 2002 @@ -60,6 +60,7 @@ extern char *find_ignore_dirs; extern int num_history_items_recorded; +extern int history_show_duplicates; char *profile_name; /* .mc/ini */ char *global_profile_name; /* mc.lib */ @@ -192,6 +193,7 @@ static const struct { { "panel_scroll_pages", &panel_scroll_pages }, { "xtree_mode", &xtree_mode }, { "num_history_items_recorded", &num_history_items_recorded }, + { "history_show_duplicates", &history_show_duplicates }, { "file_op_compute_totals", &file_op_compute_totals }, #ifdef SAVE_CHANGES_OUTSIDE_OPTIONS_MENU { "dive_into_subdirs", &dive_into_subdirs }, diff -purN mc-4.6.0-pre1/src/widget.c mc-4.6.0-pre1.new/src/widget.c --- mc-4.6.0-pre1/src/widget.c Sat Jul 20 04:54:52 2002 +++ mc-4.6.0-pre1.new/src/widget.c Sun Nov 24 08:22:57 2002 @@ -795,6 +795,7 @@ winput_set_origin (WInput *in, int x, in */ int num_history_items_recorded = 60; +int history_show_duplicates = 1; Hist *history_get (char *input_name) { @@ -963,6 +964,7 @@ char *show_hist (Hist *history, int widg query_dlg = create_dlg (y, x, h, w, dialog_colors, history_callback, "[History-query]", "history", DLG_NONE); query_list = listbox_new (1, 1, w - 2, h - 2, listbox_finish, 0, NULL); + query_list->allow_duplicates = history_show_duplicates; add_widget (query_dlg, query_list); hi = z; if (y < widget_y) {
Attachment:
pgplilncPyqPE.pgp
Description: PGP signature