From: Stephan Witt Date: Thu, 19 May 2011 05:50:55 +0000 (+0000) Subject: #7564 add new argument to the documentation of LFUN_WORD_REPLACE, make the default... X-Git-Tag: 2.1.0beta1~3221 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=56960daa7c8c1b942f6a59122f3207d4dd0af381;p=lyx.git #7564 add new argument to the documentation of LFUN_WORD_REPLACE, make the default of the new argument backward compatible git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38785 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/LyXAction.cpp b/src/LyXAction.cpp index 34693a4128..f9ee2f8730 100644 --- a/src/LyXAction.cpp +++ b/src/LyXAction.cpp @@ -863,7 +863,7 @@ void LyXAction::init() * \li Params: : data is of the form " \n \n - " + " * \li Origin: Andre, Jan 7 2004 * \endvar */ diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index 9e86aea309..3e937be4f4 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -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;