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

Diff for /src/usr.bin/tmux/paste.c between version 1.42 and 1.43

version 1.42, 2020/05/16 15:35:19 version 1.43, 2022/06/04 07:42:07
Line 112 
Line 112 
         return (RB_NEXT(paste_time_tree, &paste_by_time, pb));          return (RB_NEXT(paste_time_tree, &paste_by_time, pb));
 }  }
   
   int
   paste_is_empty(void)
   {
           return RB_ROOT(&paste_by_time) == NULL;
   }
   
 /* Get the most recent automatic buffer. */  /* Get the most recent automatic buffer. */
 struct paste_buffer *  struct paste_buffer *
 paste_get_top(const char **name)  paste_get_top(const char **name)
Line 119 
Line 125 
         struct paste_buffer     *pb;          struct paste_buffer     *pb;
   
         pb = RB_MIN(paste_time_tree, &paste_by_time);          pb = RB_MIN(paste_time_tree, &paste_by_time);
           while (pb != NULL && !pb->automatic)
                   pb = RB_NEXT(paste_time_tree, &paste_by_time, pb);
         if (pb == NULL)          if (pb == NULL)
                 return (NULL);                  return (NULL);
         if (name != NULL)          if (name != NULL)

Legend:
Removed from v.1.42  
changed lines
  Added in v.1.43