From 56960daa7c8c1b942f6a59122f3207d4dd0af381 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Thu, 19 May 2011 05:50:55 +0000 Subject: [PATCH] #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 --- src/LyXAction.cpp | 2 +- src/lyxfind.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5