[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.235 and 1.236

version 1.235, 2019/06/20 13:40:22 version 1.236, 2019/06/24 08:20:02
Line 19 
Line 19 
 #include <sys/types.h>  #include <sys/types.h>
 #include <sys/ioctl.h>  #include <sys/ioctl.h>
   
   #include <ctype.h>
 #include <errno.h>  #include <errno.h>
 #include <fcntl.h>  #include <fcntl.h>
 #include <fnmatch.h>  #include <fnmatch.h>
Line 1222 
Line 1223 
         char            *new = NULL, *line;          char            *new = NULL, *line;
         u_int            i;          u_int            i;
         int              flags = 0, found;          int              flags = 0, found;
           size_t           n;
   
         if (!regex) {          if (!regex) {
                 if (ignore)                  if (ignore)
Line 1236 
Line 1238 
   
         for (i = 0; i < screen_size_y(s); i++) {          for (i = 0; i < screen_size_y(s); i++) {
                 line = grid_view_string_cells(s->grid, 0, i, screen_size_x(s));                  line = grid_view_string_cells(s->grid, 0, i, screen_size_x(s));
                   for (n = strlen(line); n > 0; n--) {
                           if (!isspace((u_char)line[n - 1]))
                                   break;
                           line[n - 1] = '\0';
                   }
                   log_debug("%s: %s", __func__, line);
                 if (!regex)                  if (!regex)
                         found = (fnmatch(new, line, 0) == 0);                          found = (fnmatch(new, line, 0) == 0);
                 else                  else

Legend:
Removed from v.1.235  
changed lines
  Added in v.1.236