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

Diff for /src/usr.bin/tmux/tty-features.c between version 1.2 and 1.3

version 1.2, 2020/04/20 13:38:48 version 1.3, 2020/04/20 15:37:32
Line 232 
Line 232 
         return (s);          return (s);
 }  }
   
 void  int
 tty_apply_features(struct tty_term *term, int feat)  tty_apply_features(struct tty_term *term, int feat)
 {  {
         const struct tty_feature         *tf;          const struct tty_feature         *tf;
Line 240 
Line 240 
         u_int                             i;          u_int                             i;
   
         if (feat == 0)          if (feat == 0)
                 return;                  return (0);
         log_debug("applying terminal features: %s", tty_get_features(feat));          log_debug("applying terminal features: %s", tty_get_features(feat));
   
         for (i = 0; i < nitems(tty_features); i++) {          for (i = 0; i < nitems(tty_features); i++) {
Line 259 
Line 259 
                 }                  }
                 term->flags |= tf->flags;                  term->flags |= tf->flags;
         }          }
           if ((term->features | feat) == term->features)
                   return (0);
         term->features |= feat;          term->features |= feat;
           return (1);
 }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3