Fix selection present check, reported by M Kelly.

This commit is contained in:
nicm 2024-03-26 10:20:20 +00:00
parent 89c1c43ef9
commit 6207a45139

View File

@ -805,7 +805,7 @@ window_copy_formats(struct window_mode_entry *wme, struct format_tree *ft)
format_add(ft, "selection_active", "1"); format_add(ft, "selection_active", "1");
else else
format_add(ft, "selection_active", "0"); format_add(ft, "selection_active", "0");
if (data->endselx != data->selx && data->endsely != data->sely) if (data->endselx != data->selx || data->endsely != data->sely)
format_add(ft, "selection_present", "1"); format_add(ft, "selection_present", "1");
else else
format_add(ft, "selection_present", "0"); format_add(ft, "selection_present", "0");