How to get the number of windows in a tab? #107
Answered
by
nanozuki
luiz00martins
asked this question in
Q&A
-
I tried the following: line.tabs().foreach(function(tab)
local wins = tab.wins()
local win_count = #wins
... but that always returns me 0. |
Beta Was this translation helpful? Give feedback.
Answered by
nanozuki
Jan 31, 2023
Replies: 1 comment
-
Sorry for my lateness, I was so busy in the last two months. The local win_count = #wins.wins Or other low level way:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
luiz00martins
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry for my lateness, I was so busy in the last two months.
The
tab.wins
is not an array, this object haswins
andforeach
two attributes. So, you can get the windows' count, you can use:Or other low level way: