[BACK]Return to lesskey.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / less

Diff for /src/usr.bin/less/lesskey.c between version 1.5 and 1.6

version 1.5, 2003/04/13 18:26:26 version 1.6, 2011/09/16 18:12:09
Line 1 
Line 1 
 /*  /*
  * Copyright (C) 1984-2002  Mark Nudelman   * Copyright (C) 1984-2011  Mark Nudelman
  *   *
  * You may distribute under the terms of either the GNU General Public   * You may distribute under the terms of either the GNU General Public
  * License or the Less License, as specified in the README file.   * License or the Less License, as specified in the README file.
Line 93 
Line 93 
   
 struct cmdname cmdnames[] =  struct cmdname cmdnames[] =
 {  {
         { "back-bracket",       A_B_BRACKET },          { "back-bracket",         A_B_BRACKET },
         { "back-line",          A_B_LINE },          { "back-line",            A_B_LINE },
         { "back-line-force",    A_BF_LINE },          { "back-line-force",      A_BF_LINE },
         { "back-screen",        A_B_SCREEN },          { "back-screen",          A_B_SCREEN },
         { "back-scroll",        A_B_SCROLL },          { "back-scroll",          A_B_SCROLL },
         { "back-search",        A_B_SEARCH },          { "back-search",          A_B_SEARCH },
         { "back-window",        A_B_WINDOW },          { "back-window",          A_B_WINDOW },
         { "debug",              A_DEBUG },          { "debug",                A_DEBUG },
         { "digit",              A_DIGIT },          { "digit",                A_DIGIT },
         { "display-flag",       A_DISP_OPTION },          { "display-flag",         A_DISP_OPTION },
         { "display-option",     A_DISP_OPTION },          { "display-option",       A_DISP_OPTION },
         { "end",                A_GOEND },          { "end",                  A_GOEND },
         { "examine",            A_EXAMINE },          { "examine",              A_EXAMINE },
         { "first-cmd",          A_FIRSTCMD },          { "filter",               A_FILTER },
         { "firstcmd",           A_FIRSTCMD },          { "first-cmd",            A_FIRSTCMD },
         { "flush-repaint",      A_FREPAINT },          { "firstcmd",             A_FIRSTCMD },
         { "forw-bracket",       A_F_BRACKET },          { "flush-repaint",        A_FREPAINT },
         { "forw-forever",       A_F_FOREVER },          { "forw-bracket",         A_F_BRACKET },
         { "forw-line",          A_F_LINE },          { "forw-forever",         A_F_FOREVER },
         { "forw-line-force",    A_FF_LINE },          { "forw-line",            A_F_LINE },
         { "forw-screen",        A_F_SCREEN },          { "forw-line-force",      A_FF_LINE },
         { "forw-screen-force",  A_FF_SCREEN },          { "forw-screen",          A_F_SCREEN },
         { "forw-scroll",        A_F_SCROLL },          { "forw-screen-force",    A_FF_SCREEN },
         { "forw-search",        A_F_SEARCH },          { "forw-scroll",          A_F_SCROLL },
         { "forw-window",        A_F_WINDOW },          { "forw-search",          A_F_SEARCH },
         { "goto-end",           A_GOEND },          { "forw-window",          A_F_WINDOW },
         { "goto-line",          A_GOLINE },          { "goto-end",             A_GOEND },
         { "goto-mark",          A_GOMARK },          { "goto-line",            A_GOLINE },
         { "help",               A_HELP },          { "goto-mark",            A_GOMARK },
         { "index-file",         A_INDEX_FILE },          { "help",                 A_HELP },
         { "invalid",            A_UINVALID },          { "index-file",           A_INDEX_FILE },
         { "left-scroll",        A_LSHIFT },          { "invalid",              A_UINVALID },
         { "next-file",          A_NEXT_FILE },          { "left-scroll",          A_LSHIFT },
         { "next-tag",           A_NEXT_TAG },          { "next-file",            A_NEXT_FILE },
         { "noaction",           A_NOACTION },          { "next-tag",             A_NEXT_TAG },
         { "percent",            A_PERCENT },          { "noaction",             A_NOACTION },
         { "pipe",               A_PIPE },          { "percent",              A_PERCENT },
         { "prev-file",          A_PREV_FILE },          { "pipe",                 A_PIPE },
         { "prev-tag",           A_PREV_TAG },          { "prev-file",            A_PREV_FILE },
         { "quit",               A_QUIT },          { "prev-tag",             A_PREV_TAG },
         { "remove-file",        A_REMOVE_FILE },          { "quit",                 A_QUIT },
         { "repaint",            A_REPAINT },          { "remove-file",          A_REMOVE_FILE },
         { "repaint-flush",      A_FREPAINT },          { "repaint",              A_REPAINT },
         { "repeat-search",      A_AGAIN_SEARCH },          { "repaint-flush",        A_FREPAINT },
         { "repeat-search-all",  A_T_AGAIN_SEARCH },          { "repeat-search",        A_AGAIN_SEARCH },
         { "reverse-search",     A_REVERSE_SEARCH },          { "repeat-search-all",    A_T_AGAIN_SEARCH },
         { "reverse-search-all", A_T_REVERSE_SEARCH },          { "reverse-search",       A_REVERSE_SEARCH },
         { "right-scroll",       A_RSHIFT },          { "reverse-search-all",   A_T_REVERSE_SEARCH },
         { "set-mark",           A_SETMARK },          { "right-scroll",         A_RSHIFT },
         { "shell",              A_SHELL },          { "set-mark",             A_SETMARK },
         { "status",             A_STAT },          { "shell",                A_SHELL },
         { "toggle-flag",        A_OPT_TOGGLE },          { "status",               A_STAT },
         { "toggle-option",      A_OPT_TOGGLE },          { "toggle-flag",          A_OPT_TOGGLE },
         { "undo-hilite",        A_UNDO_SEARCH },          { "toggle-option",        A_OPT_TOGGLE },
         { "version",            A_VERSION },          { "undo-hilite",          A_UNDO_SEARCH },
         { "visual",             A_VISUAL },          { "version",              A_VERSION },
         { NULL, 0 }          { "visual",               A_VISUAL },
           { NULL,   0 }
 };  };
   
 struct cmdname editnames[] =  struct cmdname editnames[] =
Line 165 
Line 166 
         { "insert",             EC_INSERT },          { "insert",             EC_INSERT },
         { "invalid",            EC_UINVALID },          { "invalid",            EC_UINVALID },
         { "kill-line",          EC_LINEKILL },          { "kill-line",          EC_LINEKILL },
           { "abort",              EC_ABORT },
         { "left",               EC_LEFT },          { "left",               EC_LEFT },
         { "literal",            EC_LITERAL },          { "literal",            EC_LITERAL },
         { "right",              EC_RIGHT },          { "right",              EC_RIGHT },
Line 541 
Line 543 
 control_line(s)  control_line(s)
         char *s;          char *s;
 {  {
 #define PREFIX(str,pat) (strncmp(str,pat,strlen(pat)-1) == 0)  #define PREFIX(str,pat) (strncmp(str,pat,strlen(pat)) == 0)
   
         if (PREFIX(s, "#line-edit"))          if (PREFIX(s, "#line-edit"))
         {          {

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6