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

Diff for /src/usr.bin/tmux/input.c between version 1.202 and 1.203

version 1.202, 2022/05/30 13:00:18 version 1.203, 2022/06/09 09:12:55
Line 2693 
Line 2693 
         int                      outlen, state;          int                      outlen, state;
         struct screen_write_ctx  ctx;          struct screen_write_ctx  ctx;
         struct paste_buffer     *pb;          struct paste_buffer     *pb;
           const char*              allow = "cpqs01234567";
           char                     flags[sizeof allow] = "";
           u_int                    i, j = 0;
   
         if (wp == NULL)          if (wp == NULL)
                 return;                  return;
Line 2707 
Line 2710 
                 return;                  return;
         log_debug("%s: %s", __func__, end);          log_debug("%s: %s", __func__, end);
   
           for (i = 0; p + i != end; i++) {
                   if (strchr(allow, p[i]) != NULL && strchr(flags, p[i]) == NULL)
                           flags[j++] = p[i];
           }
           log_debug("%s: %.*s %s", __func__, (int)(end - p - 1), p, flags);
   
         if (strcmp(end, "?") == 0) {          if (strcmp(end, "?") == 0) {
                 if ((pb = paste_get_top(NULL)) != NULL)                  if ((pb = paste_get_top(NULL)) != NULL)
                         buf = paste_buffer_data(pb, &len);                          buf = paste_buffer_data(pb, &len);
Line 2728 
Line 2737 
         }          }
   
         screen_write_start_pane(&ctx, wp, NULL);          screen_write_start_pane(&ctx, wp, NULL);
         screen_write_setselection(&ctx, out, outlen);          screen_write_setselection(&ctx, flags, out, outlen);
         screen_write_stop(&ctx);          screen_write_stop(&ctx);
         notify_pane("pane-set-clipboard", wp);          notify_pane("pane-set-clipboard", wp);
   

Legend:
Removed from v.1.202  
changed lines
  Added in v.1.203