gmtool: markup virgin regions

highlight regions that have never been visited
This commit is contained in:
Enno Rehling 2021-06-15 21:34:23 +02:00
parent a1d59b99cb
commit f35f484324
1 changed files with 17 additions and 0 deletions

View File

@ -854,6 +854,23 @@ static void select_regions(state * st, int selectmode)
} }
} }
} }
else if (findmode == 'v') {
region *r;
/* fresh virgin regions */
sprintf(sbuffer, "%svirgin", status);
statusline(st->wnd_status->handle, sbuffer);
for (r = regions; r; r = r->next) {
if (r->age == 0) {
if (selectmode & MODE_SELECT) {
select_coordinate(st->selected, r->x, r->y,
selectmode == MODE_SELECT);
}
else {
highlight_region(r, selectmode == MODE_MARK);
}
}
}
}
else if (findmode == 'c') { else if (findmode == 'c') {
region *r; region *r;
sprintf(sbuffer, "%schaos", status); sprintf(sbuffer, "%schaos", status);