blob: 05cfbd107cd942e151571f9b4c3f72c4b1d92c98 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
From 863f606b1fcf3b91b256d9167a00539289246188 Mon Sep 17 00:00:00 2001
From: Waqar Ahmed <waqar.17a@gmail.com>
Date: Tue, 11 Jan 2022 20:03:12 +0500
Subject: [PATCH] Find: Update working range when replacing
BUG: 447972
---
src/search/katesearchbar.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/search/katesearchbar.cpp b/src/search/katesearchbar.cpp
index ed52c4cb..c1c85bd4 100644
--- a/src/search/katesearchbar.cpp
+++ b/src/search/katesearchbar.cpp
@@ -843,6 +843,8 @@ void KateSearchBar::findOrReplaceAll()
// Replace
lastRange = match.replace(m_replacement, false, ++m_matchCounter);
+ // update working range as text must have changed now
+ workingRangeCopy = m_workingRange->toRange();
} else {
lastRange = match.range();
++m_matchCounter;
--
GitLab
|