forked from github/server
gmtool: markup virgin regions
highlight regions that have never been visited
This commit is contained in:
parent
a1d59b99cb
commit
f35f484324
17
src/gmtool.c
17
src/gmtool.c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue