diff --git a/src/editor/edit-impl.h b/src/editor/edit-impl.h
index 0cf7e52..bca7e25 100644
a
|
b
|
typedef struct edit_search_options_t |
132 | 132 | gboolean only_in_selection; |
133 | 133 | gboolean whole_words; |
134 | 134 | gboolean all_codepages; |
| 135 | gboolean flush_bookmarks; |
135 | 136 | } edit_search_options_t; |
136 | 137 | |
137 | 138 | typedef struct edit_stack_type |
diff --git a/src/editor/editcmd.c b/src/editor/editcmd.c
index 61e141c..08e903a 100644
a
|
b
|
edit_do_search (WEdit * edit) |
966 | 966 | long q = 0; |
967 | 967 | |
968 | 968 | search_create_bookmark = FALSE; |
969 | | book_mark_flush (edit, -1); |
| 969 | if (edit_search_options.flush_bookmarks) |
| 970 | book_mark_flush (edit, BOOK_MARK_FOUND_COLOR); |
970 | 971 | |
971 | 972 | while (mc_search_run (edit->search, (void *) edit, q, edit->last_byte, &len)) |
972 | 973 | { |
diff --git a/src/editor/editcmd_dialogs.c b/src/editor/editcmd_dialogs.c
index 1443c07..d61e228 100644
a
|
b
|
edit_search_options_t edit_search_options = { |
55 | 55 | .backwards = FALSE, |
56 | 56 | .only_in_selection = FALSE, |
57 | 57 | .whole_words = FALSE, |
58 | | .all_codepages = FALSE |
| 58 | .all_codepages = FALSE, |
| 59 | .flush_bookmarks = TRUE, |
59 | 60 | }; |
60 | 61 | |
61 | 62 | /*** file scope macro definitions ****************************************************************/ |
… |
… |
editcmd_dialog_search_show (WEdit * edit) |
117 | 118 | QUICK_CHECKBOX (N_("&All charsets"), &edit_search_options.all_codepages, NULL), |
118 | 119 | #endif |
119 | 120 | QUICK_STOP_COLUMNS, |
| 121 | QUICK_CHECKBOX (N_("Fl&ush bookmarks before find all"), &edit_search_options.flush_bookmarks, NULL), |
120 | 122 | QUICK_START_BUTTONS (TRUE, TRUE), |
121 | 123 | QUICK_BUTTON (N_("&OK"), B_ENTER, NULL, NULL), |
122 | 124 | QUICK_BUTTON (N_("&Find all"), B_USER, NULL, NULL), |