On Wed, Jul 10, 2002 at 04:42:24PM +0200, Andre Poenitz wrote:

> > "command-sequence buffer-new ; buffer-write-as" fails silently though. A
> > bug ?
> 
> The missing semicolon at the end?

Yup.

Fixed by :


Index: lyxfunc.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyxfunc.C,v
retrieving revision 1.334
diff -u -r1.334 lyxfunc.C
--- lyxfunc.C   9 Jul 2002 16:23:19 -0000       1.334
+++ lyxfunc.C   10 Jul 2002 15:13:38 -0000
@@ -1554,7 +1554,7 @@
        case LFUN_SEQUENCE:
        {
                // argument contains ';'-terminated commands
-               while (argument.find(';') != string::npos) {
+               while (!argument.empty()) {
                        string first;
                        argument = split(argument, first, ';');
                        verboseDispatch(first, false);

OK to apply ?

regards
john

-- 
"I know I believe in nothing but it is my nothing"
        - Manic Street Preachers

Reply via email to