screen-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[screen-devel] Re: screen window hiding patch


From: Eric Wald
Subject: [screen-devel] Re: screen window hiding patch
Date: Sat, 4 Mar 2006 12:56:44 -0700

Ben Kibbey wrote:
> This patch adds window hiding from the 'next', 'prev' and 'other'
> commands.

I really like the hiding from 'next' and 'prev', but not from 'other'.
I was also surprised that the "hidden" windows showed up in my %w status
lines, but saw that you had thought about that.  My solution: hide them
*unless* either it's the current window, or window flags are shown.

@@ -4803,8 +4877,13 @@
        ss = s;
       if ((p = *pp) == 0)
        continue;
-      if ((flags & 1) && display && p == D_fore)
-       continue;
+      if (display && p == D_fore)
+       {
+         if (flags & 1)
+           continue;
+       }
+      else if ((flags & 2) && p->w_hide)
+       continue;

       cmd = p->w_title;
       l = strlen(cmd);

- Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]