]> git.lyx.org Git - features.git/commitdiff
Revert "Update previews after doing a find/replace (#7242)"
authorScott Kostyshak <skostysh@lyx.org>
Fri, 13 Nov 2015 05:50:39 +0000 (00:50 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Fri, 13 Nov 2015 05:50:39 +0000 (00:50 -0500)
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.

src/lyxfind.cpp

index 2f7a0b4901d99d58f2c592f0a5ca750eaae0d605..f46bed9ac5fc41cf17be3c4b0b2b3c9817d4d0c1 100644 (file)
@@ -385,7 +385,6 @@ bool lyxreplace(BufferView * bv,
                else
                        bv->message(_("String not found."));
        }
-       bv->buffer().updatePreviews();
        return update;
 }