Add selection_active format for when the selection is present but not

moving with the cursor, from Mark Kelly.
This commit is contained in:
nicm
2020-02-20 07:34:57 +00:00
parent b20753f2a3
commit 229be034fb
2 changed files with 5 additions and 1 deletions

View File

@ -590,7 +590,10 @@ window_copy_formats(struct window_mode_entry *wme, struct format_tree *ft)
format_add(ft, "selection_start_y", "%d", data->sely);
format_add(ft, "selection_end_x", "%d", data->endselx);
format_add(ft, "selection_end_y", "%d", data->endsely);
}
format_add(ft, "selection_active", "%d",
data->cursordrag != CURSORDRAG_NONE);
} else
format_add(ft, "selection_active", "%d", 0);
s = format_grid_word(data->screen.grid, data->cx, data->cy);
if (s != NULL) {