Hi,
I think I have found at least one bug and one oddity:
The -do command is only reset to "" in the !VMS case. Which would
result that the -do macro is executed for all following files. Because
VMS does wildcard expension by itself, I would also propose to add a
warning, if a -do macro would be executed for file arguments which
expands to more than one file.
The second is an oddity that the -line argument is not reset after a
file argument, That is, all following files after a -line argument
will be opened with this line.
As a general question: should we add more options to this reset-list?
To get a finer control to the effect of these options to file
arguments. It is also possible to add new options, which disable
previous one, like -noread, -nocreate, -nolm, -noiconic?
Bert
PS: a patch for the first two points:
Index: source/nc.c
===================================================================
RCS file: /cvsroot/nedit/nedit/source/nc.c,v
retrieving revision 1.48.2.1
diff -u -p -r1.48.2.1 nc.c
--- source/nc.c 31 Oct 2009 11:32:31 -0000 1.48.2.1
+++ source/nc.c 23 Nov 2009 12:48:27 -0000
@@ -794,12 +794,13 @@ static void parseCommandLine(int argc, c
strcpy(outPtr, geometry);
outPtr += strlen(geometry);
*outPtr++ = '\n';
- toDoCommand = "";
/* Create the file open atoms for the paths supplied */
addToFileList(path);
fileCount++;
#endif /* VMS */
+ toDoCommand = "";
+ lineNum = 0;
}
}
#ifdef VMS
--
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop