tweaks: adjust indentation after preceding changes

Also, shorten two variable names.
master
Benno Schulenberg 2017-06-18 11:12:49 +02:00
parent 40d34862fd
commit 33c7a4ca95
1 changed files with 22 additions and 25 deletions

View File

@ -2533,16 +2533,15 @@ int main(int argc, char **argv)
#endif #endif
/* Read the named files on the command line into new buffers. */ /* Read the named files on the command line into new buffers. */
{
while (optind < argc && (!openfile || ISSET(MULTIBUFFER))) { while (optind < argc && (!openfile || ISSET(MULTIBUFFER))) {
ssize_t givenline = 0, givencol = 0; ssize_t givenline = 0, givencol = 0;
/* If there's a +LINE or +LINE,COLUMN flag here, it is followed /* If there's a +LINE[,COLUMN] argument here, eat it up. */
* by at least one other argument: the filename it applies to. */
if (optind < argc - 1 && argv[optind][0] == '+') { if (optind < argc - 1 && argv[optind][0] == '+') {
if (!parse_line_column(&argv[optind++][1], &givenline, &givencol)) if (!parse_line_column(&argv[optind++][1], &givenline, &givencol))
statusline(ALERT, _("Invalid line or column number")); statusline(ALERT, _("Invalid line or column number"));
} }
/* If opening fails, don't try to position the cursor. */ /* If opening fails, don't try to position the cursor. */
if (!open_buffer(argv[optind++], FALSE)) if (!open_buffer(argv[optind++], FALSE))
continue; continue;
@ -2552,15 +2551,13 @@ int main(int argc, char **argv)
do_gotolinecolumn(givenline, givencol, FALSE, FALSE); do_gotolinecolumn(givenline, givencol, FALSE, FALSE);
#ifndef DISABLE_HISTORIES #ifndef DISABLE_HISTORIES
else if (ISSET(POS_HISTORY)) { else if (ISSET(POS_HISTORY)) {
ssize_t savedposline, savedposcol; ssize_t savedline, savedcol;
/* If edited before, restore the last cursor position. */ /* If edited before, restore the last cursor position. */
if (has_old_position(argv[optind - 1], &savedposline, &savedposcol)) if (has_old_position(argv[optind - 1], &savedline, &savedcol))
do_gotolinecolumn(savedposline, savedposcol, do_gotolinecolumn(savedline, savedcol, FALSE, FALSE);
FALSE, FALSE);
} }
#endif #endif
} }
}
/* If no filenames were given, or all of them were invalid things like /* If no filenames were given, or all of them were invalid things like
* directories, then open a blank buffer and allow editing. Otherwise, * directories, then open a blank buffer and allow editing. Otherwise,