mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-10 23:50:41 -04:00
Refactor after upstream changes; harden get_name_from_tag_number
This commit is contained in:
parent
9bfe2f08dd
commit
c3a0c11adc
8 changed files with 67 additions and 54 deletions
|
|
@ -1539,10 +1539,10 @@ int32_t viewtoright_have_client(const Arg *arg) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (current >= tag_count)
|
||||
if (current >= config.tag_count)
|
||||
return 0;
|
||||
|
||||
for (n = current + 1; n <= tag_count; n++) {
|
||||
for (n = current + 1; n <= config.tag_count; n++) {
|
||||
if (get_tag_status(n, selmon)) {
|
||||
found = true;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue