changeset 27131:acedcba362be

maint: Merge stable to default.
author John W. Eaton <jwe@octave.org>
date Thu, 30 May 2019 11:23:16 +0000
parents 396d17dcfb9f (current diff) 8854d65e3bcc (diff)
children 8ea53aa9ac39
files libgui/src/m-editor/find-dialog.cc
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/m-editor/find-dialog.cc	Thu May 30 10:23:44 2019 +0000
+++ b/libgui/src/m-editor/find-dialog.cc	Thu May 30 11:23:16 2019 +0000
@@ -447,12 +447,15 @@
 
         _rep_all = 1;
         find_next ();  // find first occurence (forward)
+
+        _edit_area->beginUndoAction ();
         while (_find_result_available)   // while search string is found
           {
             do_replace ();
             _rep_all++;                                          // inc counter
             find_next ();                                        // find next
           }
+        _edit_area->endUndoAction ();
 
         QMessageBox msg_box (QMessageBox::Information, tr ("Replace Result"),
                              tr ("%1 items replaced").arg (_rep_all-1),