function old new delta
vi_main 273 272 -1
colon 2853 2852 -1
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-2) Total: -2 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
if (useforce) {
if (*cmd == 'q') {
// force end of argv list
- optind = cmdline_filecnt - 1;
+ optind = cmdline_filecnt;
}
editing = 0;
goto ret;
edit_file(argv[optind]); // might be NULL on 1st iteration
// NB: optind can be changed by ":next" and ":rewind" commands
optind++;
- if (!argv[optind])
+ if (optind >= cmdline_filecnt)
break;
}
// "Use normal screen buffer, restore cursor"