diff --git a/src/ChangeLog b/src/ChangeLog index 51104d780e..0d826b97c3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2002-07-10 John Levon + + * LyXAction.C: allow command-sequence with NoBuffer + + * lyxfunc.C: don't insist on trailing ';' for command-sequence + 2002-07-10 Angus Leeming * lyxrc.[Ch]: preview_scale_factor should be a float not an int. diff --git a/src/LyXAction.C b/src/LyXAction.C index 97872c3ebf..a2a4a20561 100644 --- a/src/LyXAction.C +++ b/src/LyXAction.C @@ -162,7 +162,7 @@ void LyXAction::init() { 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 }, diff --git a/src/lyxfunc.C b/src/lyxfunc.C index c024395fae..d1d920895f 100644 --- a/src/lyxfunc.C +++ b/src/lyxfunc.C @@ -1554,7 +1554,7 @@ string const LyXFunc::dispatch(kb_action action, string argument) case LFUN_SEQUENCE: { // argument contains ';'-terminated commands - while (argument.find(';') != string::npos) { + while (!argument.empty()) { string first; argument = split(argument, first, ';'); verboseDispatch(first, false);