diff options
Diffstat (limited to 'miscutils')
| -rw-r--r-- | miscutils/less.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/miscutils/less.c b/miscutils/less.c index 82092f600..d60e6d920 100644 --- a/miscutils/less.c +++ b/miscutils/less.c | |||
| @@ -255,7 +255,6 @@ struct globals { | |||
| 255 | SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \ | 255 | SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \ |
| 256 | less_gets_pos = -1; \ | 256 | less_gets_pos = -1; \ |
| 257 | empty_line_marker = "~"; \ | 257 | empty_line_marker = "~"; \ |
| 258 | num_files = 1; \ | ||
| 259 | current_file = 1; \ | 258 | current_file = 1; \ |
| 260 | eof_error = 1; \ | 259 | eof_error = 1; \ |
| 261 | terminated = 1; \ | 260 | terminated = 1; \ |
| @@ -1773,9 +1772,8 @@ int less_main(int argc, char **argv) | |||
| 1773 | * (used by some setups for manpage display) | 1772 | * (used by some setups for manpage display) |
| 1774 | */ | 1773 | */ |
| 1775 | getopt32(argv, "EMmN~I" IF_FEATURE_LESS_TRUNCATE("S") /*ignored:*/"s"); | 1774 | getopt32(argv, "EMmN~I" IF_FEATURE_LESS_TRUNCATE("S") /*ignored:*/"s"); |
| 1776 | argc -= optind; | ||
| 1777 | argv += optind; | 1775 | argv += optind; |
| 1778 | num_files = argc; | 1776 | num_files = argc - optind; |
| 1779 | files = argv; | 1777 | files = argv; |
| 1780 | 1778 | ||
| 1781 | /* Another popular pager, most, detects when stdout | 1779 | /* Another popular pager, most, detects when stdout |
