mirror of
https://git.savannah.gnu.org/git/screen.git
synced 2026-02-10 09:22:04 +02:00
use function to get number of perpendicular canvases
This commit is contained in:
@@ -130,14 +130,7 @@ int CountCanvas(Canvas *cv)
|
|||||||
int num = 0;
|
int num = 0;
|
||||||
for (; cv; cv = cv->c_slnext) {
|
for (; cv; cv = cv->c_slnext) {
|
||||||
if (cv->c_slperp) {
|
if (cv->c_slperp) {
|
||||||
int nump = 1;
|
num += CountCanvasPerp(cv);
|
||||||
for (Canvas *cvp = cv->c_slperp; cvp; cvp = cvp->c_slnext)
|
|
||||||
if (cvp->c_slperp) {
|
|
||||||
int n = CountCanvas(cvp->c_slperp);
|
|
||||||
if (n > nump)
|
|
||||||
nump = n;
|
|
||||||
}
|
|
||||||
num += nump;
|
|
||||||
} else
|
} else
|
||||||
num++;
|
num++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user