mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 01:18:52 +00:00
Merge branch 'obsd-master'
This commit is contained in:
commit
486ce9b098
@ -2438,12 +2438,11 @@ void
|
|||||||
window_copy_add_formats(struct window_pane *wp, struct format_tree *ft)
|
window_copy_add_formats(struct window_pane *wp, struct format_tree *ft)
|
||||||
{
|
{
|
||||||
struct window_copy_mode_data *data = wp->modedata;
|
struct window_copy_mode_data *data = wp->modedata;
|
||||||
struct screen *s = &data->screen;
|
|
||||||
|
|
||||||
if (wp->mode != &window_copy_mode)
|
if (wp->mode != &window_copy_mode)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
format_add(ft, "selection_present", "%d", s->sel.flag);
|
format_add(ft, "selection_present", "%d", data->screen.sel.flag);
|
||||||
format_add(ft, "scroll_position", "%d", data->oy);
|
format_add(ft, "scroll_position", "%d", data->oy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user