[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.122 and 1.123

version 1.122, 2017/05/28 23:23:40 version 1.123, 2017/06/03 17:43:01
Line 2103 
Line 2103 
         char                    *end;          char                    *end;
         size_t                   len;          size_t                   len;
         u_char                  *out;          u_char                  *out;
         int                      outlen;          int                      outlen, state;
         struct screen_write_ctx  ctx;          struct screen_write_ctx  ctx;
   
           state = options_get_number(global_options, "set-clipboard");
           if (state != 2)
                   return;
   
         if ((end = strchr(p, ';')) == NULL)          if ((end = strchr(p, ';')) == NULL)
                 return;                  return;
         end++;          end++;
Line 2122 
Line 2126 
                 return;                  return;
         }          }
   
         if (options_get_number(global_options, "set-clipboard")) {          screen_write_start(&ctx, wp, NULL);
                 screen_write_start(&ctx, wp, NULL);          screen_write_setselection(&ctx, out, outlen);
                 screen_write_setselection(&ctx, out, outlen);          screen_write_stop(&ctx);
                 screen_write_stop(&ctx);  
         }  
         paste_add(out, outlen);          paste_add(out, outlen);
 }  }
   

Legend:
Removed from v.1.122  
changed lines
  Added in v.1.123