From b081a69fc6653b1dda6dbe0a63278d0040bcfa64 Mon Sep 17 00:00:00 2001 From: Larry Kollar Date: Sat, 9 Dec 2017 00:24:37 -0500 Subject: [PATCH] Fixed Issue #12 --- src/file_opml.c | 2 +- src/tines.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/file_opml.c b/src/file_opml.c index ed2b46a..a6a508b 100644 --- a/src/file_opml.c +++ b/src/file_opml.c @@ -192,7 +192,7 @@ static void* export_opml (int argc, char **argv, void *data) fprintf (file, "\n" ); if( prefs.savepos ) - fprintf(file, "\n", argc>=3?argv[2]:"1" ); + fprintf(file, "\n", opml_scroll ); fprintf(file, "\n\ \n", VERSION); diff --git a/src/tines.c b/src/tines.c index d60b370..096c1d6 100644 --- a/src/tines.c +++ b/src/tines.c @@ -207,7 +207,7 @@ int main (int argc, char **argv) cmdline.def_db = 0; } } else { - cmdline.cmd = argv[optind++]; + cmdline.cmd = argv[optind]; cmdline.ui = 0; } @@ -430,8 +430,8 @@ o)pen read_only\n\ ui_end (); break; case 0: /* -e */ - /* pos = (Node *) cli_docmd (cmdline.cmd, pos); */ /* issue #12 */ - while (argno <= argc) { + /* pos = (Node *) cli_docmd (cmdline.cmd, pos); */ /* issue #13 */ + while (argno < argc) { pos = (Node *) cli_docmd (argv[argno++], pos); } break;