opttbl.c (195941) | opttbl.c (221715) |
---|---|
1/* | 1/* |
2 * Copyright (C) 1984-2009 Mark Nudelman | 2 * Copyright (C) 1984-2011 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 about less, or for information on how to 8 * contact the author, see the README file. 9 */ 10 --- 117 unchanged lines hidden (view full) --- 128 * one %d which is replaced by the value of the number. 129 * For STRING options, odesc[0] is the prompt to use when entering 130 * a new value, and odesc[1], if not NULL, is the set of characters 131 * that are valid in the string. 132 */ 133static struct loption option[] = 134{ 135 { 'a', &a_optname, | 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 about less, or for information on how to 8 * contact the author, see the README file. 9 */ 10 --- 117 unchanged lines hidden (view full) --- 128 * one %d which is replaced by the value of the number. 129 * For STRING options, odesc[0] is the prompt to use when entering 130 * a new value, and odesc[1], if not NULL, is the set of characters 131 * that are valid in the string. 132 */ 133static struct loption option[] = 134{ 135 { 'a', &a_optname, |
136 BOOL, OPT_OFF, &how_search, NULL, | 136 TRIPLE, OPT_ONPLUS, &how_search, NULL, |
137 { 138 "Search includes displayed screen", 139 "Search skips displayed screen", | 137 { 138 "Search includes displayed screen", 139 "Search skips displayed screen", |
140 NULL | 140 "Search includes all of displayed screen" |
141 } 142 }, 143 144 { 'b', &b_optname, 145 NUMBER|INIT_HANDLER, 64, &bufspace, opt_b, 146 { 147 "Max buffer space per file (K): ", 148 "Max buffer space per file: %dK", --- 83 unchanged lines hidden (view full) --- 232 "Ignore case in searches", 233 "Ignore case in searches and in patterns" 234 } 235 }, 236 { 'j', &j_optname, 237 STRING, 0, NULL, opt_j, 238 { 239 "Target line: ", | 141 } 142 }, 143 144 { 'b', &b_optname, 145 NUMBER|INIT_HANDLER, 64, &bufspace, opt_b, 146 { 147 "Max buffer space per file (K): ", 148 "Max buffer space per file: %dK", --- 83 unchanged lines hidden (view full) --- 232 "Ignore case in searches", 233 "Ignore case in searches and in patterns" 234 } 235 }, 236 { 'j', &j_optname, 237 STRING, 0, NULL, opt_j, 238 { 239 "Target line: ", |
240 "0123456789.", | 240 "0123456789.-", |
241 NULL 242 } 243 }, 244 { 'J', &J__optname, 245 BOOL|REPAINT, OPT_OFF, &status_col, NULL, 246 { 247 "Don't display a status column", 248 "Display a status column", --- 173 unchanged lines hidden (view full) --- 422 { '#', £_optname, 423 STRING, 0, NULL, opt_shift, 424 { 425 "Horizontal shift: ", 426 "0123456789.", 427 NULL 428 } 429 }, | 241 NULL 242 } 243 }, 244 { 'J', &J__optname, 245 BOOL|REPAINT, OPT_OFF, &status_col, NULL, 246 { 247 "Don't display a status column", 248 "Display a status column", --- 173 unchanged lines hidden (view full) --- 422 { '#', £_optname, 423 STRING, 0, NULL, opt_shift, 424 { 425 "Horizontal shift: ", 426 "0123456789.", 427 NULL 428 } 429 }, |
430 { '.', &keypad_optname, | 430 { OLETTER_NONE, &keypad_optname, |
431 BOOL|NO_TOGGLE, OPT_OFF, &no_keypad, NULL, 432 { 433 "Use keypad mode", 434 "Don't use keypad mode", 435 NULL 436 } 437 }, | 431 BOOL|NO_TOGGLE, OPT_OFF, &no_keypad, NULL, 432 { 433 "Use keypad mode", 434 "Don't use keypad mode", 435 NULL 436 } 437 }, |
438 { '.', &oldbot_optname, | 438 { OLETTER_NONE, &oldbot_optname, |
439 BOOL, OPT_OFF, &oldbot, NULL, 440 { 441 "Use new bottom of screen behavior", 442 "Use old bottom of screen behavior", 443 NULL 444 } 445 }, | 439 BOOL, OPT_OFF, &oldbot, NULL, 440 { 441 "Use new bottom of screen behavior", 442 "Use old bottom of screen behavior", 443 NULL 444 } 445 }, |
446 { '.', &follow_optname, | 446 { OLETTER_NONE, &follow_optname, |
447 BOOL, FOLLOW_DESC, &follow_mode, NULL, 448 { | 447 BOOL, FOLLOW_DESC, &follow_mode, NULL, 448 { |
449 "F command Follows file descriptor", 450 "F command Follows file name", | 449 "F command follows file descriptor", 450 "F command follows file name", |
451 NULL 452 } 453 }, 454 { '\0', NULL, NOVAR, 0, NULL, NULL, { NULL, NULL, NULL } } 455}; 456 457 458/* --- 145 unchanged lines hidden --- | 451 NULL 452 } 453 }, 454 { '\0', NULL, NOVAR, 0, NULL, NULL, { NULL, NULL, NULL } } 455}; 456 457 458/* --- 145 unchanged lines hidden --- |