[BACK]Return to cmd-choose-buffer.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/Attic/cmd-choose-buffer.c between version 1.15 and 1.16

version 1.15, 2013/10/10 12:00:18 version 1.16, 2014/04/02 18:12:18
Line 49 
Line 49 
         char                            *action, *action_data;          char                            *action, *action_data;
         const char                      *template;          const char                      *template;
         u_int                            idx;          u_int                            idx;
           int                              utf8flag;
   
         if ((c = cmd_current_client(cmdq)) == NULL) {          if ((c = cmd_current_client(cmdq)) == NULL) {
                 cmdq_error(cmdq, "no client available");                  cmdq_error(cmdq, "no client available");
Line 60 
Line 61 
   
         if ((wl = cmd_find_window(cmdq, args_get(args, 't'), NULL)) == NULL)          if ((wl = cmd_find_window(cmdq, args_get(args, 't'), NULL)) == NULL)
                 return (CMD_RETURN_ERROR);                  return (CMD_RETURN_ERROR);
           utf8flag = options_get_number(&wl->window->options, "utf8");
   
         if (paste_get_top(&global_buffers) == NULL)          if (paste_get_top(&global_buffers) == NULL)
                 return (CMD_RETURN_NORMAL);                  return (CMD_RETURN_NORMAL);
Line 79 
Line 81 
   
                 cdata->ft_template = xstrdup(template);                  cdata->ft_template = xstrdup(template);
                 format_add(cdata->ft, "line", "%u", idx - 1);                  format_add(cdata->ft, "line", "%u", idx - 1);
                 format_paste_buffer(cdata->ft, pb);                  format_paste_buffer(cdata->ft, pb, utf8flag);
   
                 xasprintf(&action_data, "%u", idx - 1);                  xasprintf(&action_data, "%u", idx - 1);
                 cdata->command = cmd_template_replace(action, action_data, 1);                  cdata->command = cmd_template_replace(action, action_data, 1);

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16