From: Scott Kostyshak Date: Fri, 13 Nov 2015 05:50:39 +0000 (-0500) Subject: Revert "Update previews after doing a find/replace (#7242)" X-Git-Tag: 2.2.0alpha1~9 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=a7a14395;p=lyx.git Revert "Update previews after doing a find/replace (#7242)" Updating all previews (even if only one has changed) is more costly than I thought. Thanks to Guillaume for tracking down this performance issue. This reversion is related to the reversion at 358745d0. See also #7242 and #9855. This reverts commit 66f527e417de916105680696bd44d7ad91ff60cb. --- diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index 2f7a0b4901..f46bed9ac5 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -385,7 +385,6 @@ bool lyxreplace(BufferView * bv, else bv->message(_("String not found.")); } - bv->buffer().updatePreviews(); return update; }