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

Diff for /src/usr.bin/tmux/Attic/mode-key.c between version 1.51 and 1.52

version 1.51, 2013/03/21 16:54:37 version 1.52, 2013/03/22 15:52:40
Line 99 
Line 99 
         { MODEKEYCOPY_BOTTOMLINE, "bottom-line" },          { MODEKEYCOPY_BOTTOMLINE, "bottom-line" },
         { MODEKEYCOPY_CANCEL, "cancel" },          { MODEKEYCOPY_CANCEL, "cancel" },
         { MODEKEYCOPY_CLEARSELECTION, "clear-selection" },          { MODEKEYCOPY_CLEARSELECTION, "clear-selection" },
           { MODEKEYCOPY_COPYPIPE, "copy-pipe" },
         { MODEKEYCOPY_COPYLINE, "copy-line" },          { MODEKEYCOPY_COPYLINE, "copy-line" },
         { MODEKEYCOPY_COPYENDOFLINE, "copy-end-of-line" },          { MODEKEYCOPY_COPYENDOFLINE, "copy-end-of-line" },
         { MODEKEYCOPY_COPYSELECTION, "copy-selection" },          { MODEKEYCOPY_COPYSELECTION, "copy-selection" },
Line 513 
Line 514 
                         mbind->key = ment->key;                          mbind->key = ment->key;
                         mbind->mode = ment->mode;                          mbind->mode = ment->mode;
                         mbind->cmd = ment->cmd;                          mbind->cmd = ment->cmd;
                           mbind->arg = NULL;
                         RB_INSERT(mode_key_tree, mtab->tree, mbind);                          RB_INSERT(mode_key_tree, mtab->tree, mbind);
                 }                  }
         }          }
Line 526 
Line 528 
 }  }
   
 enum mode_key_cmd  enum mode_key_cmd
 mode_key_lookup(struct mode_key_data *mdata, int key)  mode_key_lookup(struct mode_key_data *mdata, int key, const char **arg)
 {  {
         struct mode_key_binding *mbind, mtmp;          struct mode_key_binding *mbind, mtmp;
   
Line 546 
Line 548 
                 mdata->mode = 1 - mdata->mode;                  mdata->mode = 1 - mdata->mode;
                 /* FALLTHROUGH */                  /* FALLTHROUGH */
         default:          default:
                   if (arg != NULL)
                           *arg = mbind->arg;
                 return (mbind->cmd);                  return (mbind->cmd);
         }          }
 }  }

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52