summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2022-01-20 12:45:18 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2022-01-20 14:24:18 +0100
commit3a021a3cf32b7e37971959da38b381d8304ab951 (patch)
tree4d53675a5b8fb87e23d05119e871e6ec9221ab55 /kde-frameworks/ktexteditor
parentkde-frameworks/ktexteditor: Revert text select regression from 5.88.0 (diff)
downloadgentoo-3a021a3cf32b7e37971959da38b381d8304ab951.tar.gz
gentoo-3a021a3cf32b7e37971959da38b381d8304ab951.tar.bz2
gentoo-3a021a3cf32b7e37971959da38b381d8304ab951.zip
kde-frameworks/ktexteditor: Find: Update working range when replacing
Upstream commit 863f606b1fcf3b91b256d9167a00539289246188 KDE-bug: https://bugs.kde.org/show_bug.cgi?id=447972 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-frameworks/ktexteditor')
-rw-r--r--kde-frameworks/ktexteditor/files/ktexteditor-5.90.0-KDEBUG-447972.patch26
-rw-r--r--kde-frameworks/ktexteditor/ktexteditor-5.90.0-r1.ebuild1
2 files changed, 27 insertions, 0 deletions
diff --git a/kde-frameworks/ktexteditor/files/ktexteditor-5.90.0-KDEBUG-447972.patch b/kde-frameworks/ktexteditor/files/ktexteditor-5.90.0-KDEBUG-447972.patch
new file mode 100644
index 000000000000..05cfbd107cd9
--- /dev/null
+++ b/kde-frameworks/ktexteditor/files/ktexteditor-5.90.0-KDEBUG-447972.patch
@@ -0,0 +1,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
+
diff --git a/kde-frameworks/ktexteditor/ktexteditor-5.90.0-r1.ebuild b/kde-frameworks/ktexteditor/ktexteditor-5.90.0-r1.ebuild
index d591be3b2abf..f784d0803db8 100644
--- a/kde-frameworks/ktexteditor/ktexteditor-5.90.0-r1.ebuild
+++ b/kde-frameworks/ktexteditor/ktexteditor-5.90.0-r1.ebuild
@@ -48,6 +48,7 @@ BDEPEND="test? ( >=kde-frameworks/kservice-${PVCUT}:5 )"
PATCHES=(
"${FILESDIR}/${P}-revert-5dce70a9.patch" # KDE-bugs 446189, 447525
+ "${FILESDIR}/${P}-KDEBUG-447972.patch"
)
src_configure() {