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

Diff for /src/usr.bin/tmux/Attic/window-choose.c between version 1.20 and 1.21

version 1.20, 2012/06/25 14:27:25 version 1.21, 2012/07/10 11:53:01
Line 19 
Line 19 
 #include <sys/types.h>  #include <sys/types.h>
   
 #include <ctype.h>  #include <ctype.h>
   #include <stdlib.h>
 #include <string.h>  #include <string.h>
   
 #include "tmux.h"  #include "tmux.h"
Line 152 
Line 153 
                 item = &ARRAY_ITEM(&data->list, i);                  item = &ARRAY_ITEM(&data->list, i);
                 if (data->freefn != NULL && item->wcd != NULL)                  if (data->freefn != NULL && item->wcd != NULL)
                         data->freefn(item->wcd);                          data->freefn(item->wcd);
                 xfree(item->name);                  free(item->name);
         }          }
         ARRAY_FREE(&data->list);          ARRAY_FREE(&data->list);
   
         screen_free(&data->screen);          screen_free(&data->screen);
         xfree(data);          free(data);
 }  }
   
 void  void
Line 493 
Line 494 
                 if (cause != NULL) {                  if (cause != NULL) {
                         *cause = toupper((u_char) *cause);                          *cause = toupper((u_char) *cause);
                         status_message_set(cdata->client, "%s", cause);                          status_message_set(cdata->client, "%s", cause);
                         xfree(cause);                          free(cause);
                 }                  }
                 return;                  return;
         }          }
Line 544 
Line 545 
   
         xasprintf(&action_data, "%s:%d", s->name, wl->idx);          xasprintf(&action_data, "%s:%d", s->name, wl->idx);
         wcd->command = cmd_template_replace(action, action_data, 1);          wcd->command = cmd_template_replace(action, action_data, 1);
         xfree(action_data);          free(action_data);
   
         wcd->idx = wl->idx;          wcd->idx = wl->idx;
         wcd->ft_template = xstrdup(template);          wcd->ft_template = xstrdup(template);

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21