diff options
author | Kevin McCarthy <kevin@8t8.us> | 2017-01-28 18:48:08 -0800 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2017-01-28 18:48:08 -0800 |
commit | 9ae62494d8315234b48618301bc88d31b65f297e (patch) | |
tree | da7d55f61f98f947171cb676f1d0295e04c847d7 /curs_main.c | |
parent | f58e89c8466b36d11ecabddc8baf9727f59e6d69 (diff) |
Improve the label completion hash table usage.
Move the hash table inside the Context. Hook message arrival/deletion
to update the label hash.
Change the label hash to strdup keys.
Use hash_find_elem when updating the counter, to reduce unnecessary
add/delete operations.
Diffstat (limited to 'curs_main.c')
-rw-r--r-- | curs_main.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/curs_main.c b/curs_main.c index 68deab85..43417188 100644 --- a/curs_main.c +++ b/curs_main.c @@ -1268,9 +1268,6 @@ int mutt_index_menu (void) FREE (&Context); } - if (Labels) - hash_destroy(&Labels, NULL); - mutt_sleep (0); /* Set CurrentMenu to MENU_MAIN before executing any folder @@ -1285,8 +1282,6 @@ int mutt_index_menu (void) (option (OPTREADONLY) || op == OP_MAIN_CHANGE_FOLDER_READONLY) ? MUTT_READONLY : 0, NULL)) != NULL) { - Labels = hash_create(131, 0); - mutt_scan_labels(Context); menu->current = ci_first_message (); } else |