lesskey.c (238730) | lesskey.c (293190) |
---|---|
1/* | 1/* |
2 * Copyright (C) 1984-2012 Mark Nudelman | 2 * Copyright (C) 1984-2015 Mark Nudelman |
3 * 4 * You may distribute under the terms of either the GNU General Public 5 * License or the Less License, as specified in the README file. 6 * 7 * For more information, see the README file. 8 */ 9 10 --- 104 unchanged lines hidden (view full) --- 115 { "forw-line", A_F_LINE }, 116 { "forw-line-force", A_FF_LINE }, 117 { "forw-screen", A_F_SCREEN }, 118 { "forw-screen-force", A_FF_SCREEN }, 119 { "forw-scroll", A_F_SCROLL }, 120 { "forw-search", A_F_SEARCH }, 121 { "forw-window", A_F_WINDOW }, 122 { "goto-end", A_GOEND }, | 3 * 4 * You may distribute under the terms of either the GNU General Public 5 * License or the Less License, as specified in the README file. 6 * 7 * For more information, see the README file. 8 */ 9 10 --- 104 unchanged lines hidden (view full) --- 115 { "forw-line", A_F_LINE }, 116 { "forw-line-force", A_FF_LINE }, 117 { "forw-screen", A_F_SCREEN }, 118 { "forw-screen-force", A_FF_SCREEN }, 119 { "forw-scroll", A_F_SCROLL }, 120 { "forw-search", A_F_SEARCH }, 121 { "forw-window", A_F_WINDOW }, 122 { "goto-end", A_GOEND }, |
123 { "goto-end-buffered", A_GOEND_BUF }, |
|
123 { "goto-line", A_GOLINE }, 124 { "goto-mark", A_GOMARK }, 125 { "help", A_HELP }, 126 { "index-file", A_INDEX_FILE }, 127 { "invalid", A_UINVALID }, 128 { "left-scroll", A_LSHIFT }, 129 { "next-file", A_NEXT_FILE }, 130 { "next-tag", A_NEXT_TAG }, --- 511 unchanged lines hidden (view full) --- 642 643 /* 644 * Parse the command string and store it in the current table. 645 */ 646 cmdlen = 0; 647 do 648 { 649 s = tstr(&p, 1); | 124 { "goto-line", A_GOLINE }, 125 { "goto-mark", A_GOMARK }, 126 { "help", A_HELP }, 127 { "index-file", A_INDEX_FILE }, 128 { "invalid", A_UINVALID }, 129 { "left-scroll", A_LSHIFT }, 130 { "next-file", A_NEXT_FILE }, 131 { "next-tag", A_NEXT_TAG }, --- 511 unchanged lines hidden (view full) --- 643 644 /* 645 * Parse the command string and store it in the current table. 646 */ 647 cmdlen = 0; 648 do 649 { 650 s = tstr(&p, 1); |
650 cmdlen += strlen(s); | 651 cmdlen += (int) strlen(s); |
651 if (cmdlen > MAX_CMDLEN) 652 error("command too long"); 653 else 654 add_cmd_str(s); 655 } while (*p != ' ' && *p != '\t' && *p != '\0'); 656 /* 657 * Terminate the command string with a null byte. 658 */ --- 215 unchanged lines hidden --- | 652 if (cmdlen > MAX_CMDLEN) 653 error("command too long"); 654 else 655 add_cmd_str(s); 656 } while (*p != ' ' && *p != '\t' && *p != '\0'); 657 /* 658 * Terminate the command string with a null byte. 659 */ --- 215 unchanged lines hidden --- |