From: John Levon Date: Wed, 10 Jul 2002 15:34:30 +0000 (+0000) Subject: Two command-sequence fixes X-Git-Tag: 1.6.10~18913 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=32e55ec7c808dc33b3f4ab9465ff1d9a162e0d78;p=features.git Two command-sequence fixes git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4594 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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);