Move struct screen_sel into screen.c and tidy up members that are only

used by copy mode.
This commit is contained in:
nicm
2018-07-31 11:49:26 +00:00
parent 80bdd89856
commit 82776c456e
4 changed files with 100 additions and 94 deletions

View File

@ -1343,7 +1343,7 @@ screen_write_collect_add(struct screen_write_ctx *ctx,
collect = 0;
else if (s->mode & MODE_INSERT)
collect = 0;
else if (s->sel.flag)
else if (s->sel != NULL)
collect = 0;
if (!collect) {
screen_write_collect_end(ctx);