From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/ktexteditor/files/, kde-frameworks/ktexteditor/
Date: Thu, 20 Jan 2022 13:26:33 +0000 (UTC) [thread overview]
Message-ID: <1642685058.3a021a3cf32b7e37971959da38b381d8304ab951.asturm@gentoo> (raw)
commit: 3a021a3cf32b7e37971959da38b381d8304ab951
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 20 11:45:18 2022 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Jan 20 13:24:18 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a021a3c
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 <AT> gentoo.org>
.../files/ktexteditor-5.90.0-KDEBUG-447972.patch | 26 ++++++++++++++++++++++
.../ktexteditor/ktexteditor-5.90.0-r1.ebuild | 1 +
2 files changed, 27 insertions(+)
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() {
next reply other threads:[~2022-01-20 13:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-20 13:26 Andreas Sturmlechner [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-27 18:43 [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/ktexteditor/files/, kde-frameworks/ktexteditor/ Andreas Sturmlechner
2022-08-07 20:58 Andreas Sturmlechner
2022-04-09 16:07 Andreas Sturmlechner
2022-01-20 13:26 Andreas Sturmlechner
2021-04-04 13:23 Andreas Sturmlechner
2019-11-01 19:39 Andreas Sturmlechner
2018-06-09 7:18 Andreas Sturmlechner
2016-09-29 11:39 Michael Palimaka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1642685058.3a021a3cf32b7e37971959da38b381d8304ab951.asturm@gentoo \
--to=asturm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox