diff --git a/window-copy.c b/window-copy.c index 09025497..7bb7c7fb 100644 --- a/window-copy.c +++ b/window-copy.c @@ -2438,12 +2438,11 @@ void window_copy_add_formats(struct window_pane *wp, struct format_tree *ft) { struct window_copy_mode_data *data = wp->modedata; - struct screen *s = &data->screen; if (wp->mode != &window_copy_mode) 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); }