Two command-sequence fixes

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4594 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-07-10 15:34:30 +00:00
parent 55aa66a6e0
commit 32e55ec7c8
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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.

View File

@ -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 },

View File

@ -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);