]> git.lyx.org Git - features.git/commitdiff
Two command-sequence fixes
authorJohn Levon <levon@movementarian.org>
Wed, 10 Jul 2002 15:34:30 +0000 (15:34 +0000)
committerJohn Levon <levon@movementarian.org>
Wed, 10 Jul 2002 15:34:30 +0000 (15:34 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4594 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/LyXAction.C
src/lyxfunc.C

index 51104d780edac5cae4e17fc2338c01291effd377..0d826b97c3f8bac31bd0cd8a4f20303d610fe862 100644 (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.
index 97872c3ebf5e97d2b591e1ffee5e01d1c2c62213..a2a4a2056187860164e45a36196c048272c63ad1 100644 (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 },
index c024395fae8dc2943398cd37b3fd42dcc50a614f..d1d920895f6c30ff25165657037550bbfdb3a041 100644 (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);