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

Diff for /src/usr.bin/tmux/window-copy.c between version 1.58 and 1.59

version 1.58, 2010/06/05 15:49:48 version 1.59, 2010/06/06 19:00:13
Line 367 
Line 367 
         if (data->inputtype == WINDOW_COPY_JUMPFORWARD          if (data->inputtype == WINDOW_COPY_JUMPFORWARD
             || data->inputtype == WINDOW_COPY_JUMPBACK) {              || data->inputtype == WINDOW_COPY_JUMPBACK) {
                 /* Ignore keys with modifiers. */                  /* Ignore keys with modifiers. */
                 if ((key & 0xff00) == 0) {                  if ((key & KEYC_MASK_MOD) == 0) {
                         data->jumpchar = key;                          data->jumpchar = key;
                         if (data->inputtype == WINDOW_COPY_JUMPFORWARD) {                          if (data->inputtype == WINDOW_COPY_JUMPFORWARD) {
                                 for (; np != 0; np--)                                  for (; np != 0; np--)
Line 627 
Line 627 
                 *data->inputstr = '\0';                  *data->inputstr = '\0';
                 goto input_on;                  goto input_on;
         case MODEKEYCOPY_STARTNUMBERPREFIX:          case MODEKEYCOPY_STARTNUMBERPREFIX:
                 key &= 0xff;                  key &= KEYC_MASK_KEY;
                 if (key >= '0' && key <= '9') {                  if (key >= '0' && key <= '9') {
                         data->inputtype = WINDOW_COPY_NUMERICPREFIX;                          data->inputtype = WINDOW_COPY_NUMERICPREFIX;
                         data->numprefix = 0;                          data->numprefix = 0;
Line 741 
Line 741 
         struct window_copy_mode_data    *data = wp->modedata;          struct window_copy_mode_data    *data = wp->modedata;
         struct screen                   *s = &data->screen;          struct screen                   *s = &data->screen;
   
         key &= 0xff;          key &= KEYC_MASK_KEY;
         if (key < '0' || key > '9')          if (key < '0' || key > '9')
                 return 1;                  return 1;
   

Legend:
Removed from v.1.58  
changed lines
  Added in v.1.59