+2002-07-10 John Levon <moz@compsoc.man.ac.uk>
+
+ * LyXAction.C: allow command-sequence with NoBuffer
+
+ * lyxfunc.C: don't insist on trailing ';' for command-sequence
+
2002-07-10 Angus Leeming <leeming@lyx.org>
* lyxrc.[Ch]: preview_scale_factor should be a float not an int.
{ LFUN_EXEC_COMMAND, "command-execute", "", NoBuffer },
{ LFUN_PREFIX, "command-prefix",
N_("Execute command"), NoBuffer },
- { LFUN_SEQUENCE, "command-sequence", "", Noop },
+ { LFUN_SEQUENCE, "command-sequence", "", NoBuffer },
{ LFUN_COPY, "copy", N_("Copy"), ReadOnly },
{ LFUN_CUT, "cut", N_("Cut"), Noop },
{ LFUN_DATE_INSERT, "date-insert", "", Noop },
case LFUN_SEQUENCE:
{
// argument contains ';'-terminated commands
- while (argument.find(';') != string::npos) {
+ while (!argument.empty()) {
string first;
argument = split(argument, first, ';');
verboseDispatch(first, false);