]> git.lyx.org Git - lyx.git/commitdiff
#7564 add new argument to the documentation of LFUN_WORD_REPLACE, make the default...
authorStephan Witt <switt@lyx.org>
Thu, 19 May 2011 05:50:55 +0000 (05:50 +0000)
committerStephan Witt <switt@lyx.org>
Thu, 19 May 2011 05:50:55 +0000 (05:50 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38785 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXAction.cpp
src/lyxfind.cpp

index 34693a41282662d13db57337ac3709b413ed7138..f9ee2f8730a239c2551c61ec7b940cc0026e340d 100644 (file)
@@ -863,7 +863,7 @@ void LyXAction::init()
  * \li Params: <DATA>: data is of the form
                        "<replace> \n
                         <search> \n
-                        <casesensitive> <matchword> <all> <forward>"
+                        <casesensitive> <matchword> <all> <forward> <findnext>"
  * \li Origin: Andre, Jan 7 2004
  * \endvar
  */
index 9e86aea309c589ad84d039a4ca7b9e86df19f32d..3e937be4f40923ad7e046ccfa73b30ba30473d64 100644 (file)
@@ -355,7 +355,7 @@ bool lyxreplace(BufferView * bv,
        bool matchword     = parse_bool(howto);
        bool all           = parse_bool(howto);
        bool forward       = parse_bool(howto);
-       bool findnext      = parse_bool(howto);
+       bool findnext      = howto.empty() ? true : parse_bool(howto);
 
        int replace_count = 0;
        bool update = false;