Author: switt
Date: Thu May 19 07:50:55 2011
New Revision: 38785
URL: http://www.lyx.org/trac/changeset/38785
Log:
#7564 add new argument to the documentation of LFUN_WORD_REPLACE, make the
default of the new argument backward compatible
Modified:
lyx-devel/trunk/src/LyXAction.cpp
lyx-devel/trunk/src/lyxfind.cpp
Modified: lyx-devel/trunk/src/LyXAction.cpp
==============================================================================
--- lyx-devel/trunk/src/LyXAction.cpp Thu May 19 04:37:36 2011 (r38784)
+++ lyx-devel/trunk/src/LyXAction.cpp Thu May 19 07:50:55 2011 (r38785)
@@ -863,7 +863,7 @@
* \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
*/
Modified: lyx-devel/trunk/src/lyxfind.cpp
==============================================================================
--- lyx-devel/trunk/src/lyxfind.cpp Thu May 19 04:37:36 2011 (r38784)
+++ lyx-devel/trunk/src/lyxfind.cpp Thu May 19 07:50:55 2011 (r38785)
@@ -355,7 +355,7 @@
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;