mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Add search_count and search_count_partial formats in copy mode, GitHub
issue 4091.
This commit is contained in:
@ -825,6 +825,10 @@ window_copy_formats(struct window_mode_entry *wme, struct format_tree *ft)
|
||||
}
|
||||
|
||||
format_add(ft, "search_present", "%d", data->searchmark != NULL);
|
||||
if (data->searchcount != -1) {
|
||||
format_add(ft, "search_count", "%d", data->searchcount);
|
||||
format_add(ft, "search_count_partial", "%d", data->searchmore);
|
||||
}
|
||||
format_add_cb(ft, "search_match", window_copy_search_match_cb);
|
||||
|
||||
format_add_cb(ft, "copy_cursor_word", window_copy_cursor_word_cb);
|
||||
|
Reference in New Issue
Block a user