mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Add P key to paste tagged in buffer mode, and trim some code that should
no longer be necessary.
This commit is contained in:
@ -266,7 +266,7 @@ mode_tree_count_tagged(struct mode_tree_data *mtd)
|
||||
|
||||
void
|
||||
mode_tree_each_tagged(struct mode_tree_data *mtd, void (*cb)(void *, void *,
|
||||
key_code), key_code key, int current)
|
||||
struct client *, key_code), struct client *c, key_code key, int current)
|
||||
{
|
||||
struct mode_tree_item *mti;
|
||||
u_int i;
|
||||
@ -277,12 +277,12 @@ mode_tree_each_tagged(struct mode_tree_data *mtd, void (*cb)(void *, void *,
|
||||
mti = mtd->line_list[i].item;
|
||||
if (mti->tagged) {
|
||||
fired = 1;
|
||||
cb(mtd->modedata, mti->itemdata, key);
|
||||
cb(mtd->modedata, mti->itemdata, c, key);
|
||||
}
|
||||
}
|
||||
if (!fired && current) {
|
||||
mti = mtd->line_list[mtd->current].item;
|
||||
cb(mtd->modedata, mti->itemdata, key);
|
||||
cb(mtd->modedata, mti->itemdata, c, key);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user