[BACK]Return to window.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/window.c between version 1.179 and 1.180

version 1.179, 2017/01/12 00:24:28 version 1.180, 2017/01/12 10:15:55
Line 1133 
Line 1133 
         wp->flags |= PANE_REDRAW;          wp->flags |= PANE_REDRAW;
 }  }
   
   int
   window_pane_get_palette(const struct window_pane *wp, int c)
   {
           int     new;
   
           if (wp == NULL || wp->palette == NULL)
                   return (-1);
   
           new = -1;
           if (c < 8)
                   new = wp->palette[c];
           else if (c >= 90 && c <= 97)
                   new = wp->palette[8 + c - 90];
           else if (c & COLOUR_FLAG_256)
                   new = wp->palette[c & ~COLOUR_FLAG_256];
           if (new == 0)
                   return (-1);
           return (new);
   }
   
 static void  static void
 window_pane_mode_timer(__unused int fd, __unused short events, void *arg)  window_pane_mode_timer(__unused int fd, __unused short events, void *arg)
 {  {
Line 1516 
Line 1536 
         }          }
   
         return (idx);          return (idx);
 }  
   
 int  
 window_pane_get_palette(const struct window_pane *wp, int c)  
 {  
         int     new;  
   
         if (wp == NULL || wp->palette == NULL)  
                 return (-1);  
   
         new = -1;  
         if (c < 8)  
                 new = wp->palette[c];  
         else if (c >= 90 && c <= 97)  
                 new = wp->palette[8 + c - 90];  
         else if (c & COLOUR_FLAG_256)  
                 new = wp->palette[c & ~COLOUR_FLAG_256];  
         if (new == 0)  
                 return (-1);  
         return (new);  
 }  }

Legend:
Removed from v.1.179  
changed lines
  Added in v.1.180