mirror of
https://github.com/0intro/wmii
synced 2024-11-22 05:42:05 +03:00
two small fixes
This commit is contained in:
parent
d925bcd3b0
commit
3c6b7219b4
@ -402,7 +402,7 @@ static void _select_page(void *obj, char *cmd)
|
||||
else if (!strncmp(cmd, "next", 5))
|
||||
sel = index_next_item((void **) page, page[sel]);
|
||||
else
|
||||
sel = _strtonum(cmd, 0, count_items((void **) page));
|
||||
sel = _strtonum(cmd, 0, count_items((void **) page) - 1);
|
||||
sel_page(page[sel]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user