mirror of
https://github.com/tmux/tmux.git
synced 2026-02-14 10:09:16 +00:00
Break sorting out into a common file so formats and modes use the same
code. Also add -O for sorting to the list commands. From Dane Jensen in GitHub issue 4813.
This commit is contained in:
@@ -525,7 +525,7 @@ window_customize_build_keys(struct window_customize_modedata *data,
|
||||
|
||||
static void
|
||||
window_customize_build(void *modedata,
|
||||
__unused struct mode_tree_sort_criteria *sort_crit, __unused uint64_t *tag,
|
||||
__unused struct sort_criteria *sort_crit, __unused uint64_t *tag,
|
||||
const char *filter)
|
||||
{
|
||||
struct window_customize_modedata *data = modedata;
|
||||
@@ -891,8 +891,8 @@ window_customize_init(struct window_mode_entry *wme, struct cmd_find_state *fs,
|
||||
|
||||
data->data = mode_tree_start(wp, args, window_customize_build,
|
||||
window_customize_draw, NULL, window_customize_menu,
|
||||
window_customize_height, NULL, NULL, data,
|
||||
window_customize_menu_items, NULL, 0, &s);
|
||||
window_customize_height, NULL, NULL, NULL, data,
|
||||
window_customize_menu_items, &s);
|
||||
mode_tree_zoom(data->data, args);
|
||||
|
||||
mode_tree_build(data->data);
|
||||
|
||||
Reference in New Issue
Block a user