From: "Lars Wendler" <polynomial-c@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/nano/, app-editors/nano/files/
Date: Fri, 27 Mar 2020 08:22:48 +0000 (UTC) [thread overview]
Message-ID: <1585297364.caeb488b475bae6fe7fb261aec8c6ec85d64382b.polynomial-c@gentoo> (raw)
commit: caeb488b475bae6fe7fb261aec8c6ec85d64382b
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 27 08:22:34 2020 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Fri Mar 27 08:22:44 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=caeb488b
app-editors/nano: Revbump to fix justify keystroke crash
Package-Manager: Portage-2.3.96, Repoman-2.3.22
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
.../nano-4.8-justify_keystroke_crash_fix.patch | 34 ++++++++++++++++++++++
.../nano/{nano-4.6.ebuild => nano-4.6-r1.ebuild} | 1 +
2 files changed, 35 insertions(+)
diff --git a/app-editors/nano/files/nano-4.8-justify_keystroke_crash_fix.patch b/app-editors/nano/files/nano-4.8-justify_keystroke_crash_fix.patch
new file mode 100644
index 00000000000..e18425a6b80
--- /dev/null
+++ b/app-editors/nano/files/nano-4.8-justify_keystroke_crash_fix.patch
@@ -0,0 +1,34 @@
+From 2d05ce37c60a157760f386badc387e2d53b2fa75 Mon Sep 17 00:00:00 2001
+From: Benno Schulenberg <bensberg@telfort.nl>
+Date: Thu, 5 Mar 2020 16:57:16 +0100
+Subject: [PATCH] justify: do not crash when the user attempts to justify an
+ empty region
+
+This fixes https://savannah.gnu.org/bugs/?57959.
+
+Bug existed since version 4.0, since the justifying
+of a marked region was introduced.
+---
+ src/text.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/src/text.c b/src/text.c
+index 957938f4..4fe7eb96 100644
+--- a/src/text.c
++++ b/src/text.c
+@@ -1930,6 +1930,12 @@ void do_justify(bool full_justify)
+ get_region((const linestruct **)&first_par_line, &top_x,
+ (const linestruct **)&last_par_line, &bot_x, &right_side_up);
+
++ /* When the marked region is empty, do nothing. */
++ if (first_par_line == last_par_line && top_x == bot_x) {
++ statusline(NOTICE, _("Nothing changed"));
++ return;
++ }
++
+ /* Save the starting point of the marked region. */
+ was_top_lineno = first_par_line->lineno;
+ was_top_x = top_x;
+--
+2.25.2
+
diff --git a/app-editors/nano/nano-4.6.ebuild b/app-editors/nano/nano-4.6-r1.ebuild
similarity index 96%
rename from app-editors/nano/nano-4.6.ebuild
rename to app-editors/nano/nano-4.6-r1.ebuild
index 18a962cba39..0f93288e883 100644
--- a/app-editors/nano/nano-4.6.ebuild
+++ b/app-editors/nano/nano-4.6-r1.ebuild
@@ -32,6 +32,7 @@ BDEPEND="
nls? ( sys-devel/gettext )
virtual/pkgconfig
"
+PATCHES=( "${FILESDIR}/${PN}-4.8-justify_keystroke_crash_fix.patch" )
src_prepare() {
default
if [[ ${PV} == "9999" ]] ; then
next reply other threads:[~2020-03-27 8:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-27 8:22 Lars Wendler [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-08-12 9:43 [gentoo-commits] repo/gentoo:master commit in: app-editors/nano/, app-editors/nano/files/ Lars Wendler
2020-07-31 8:38 Lars Wendler
2019-04-01 15:13 Lars Wendler
2018-09-14 7:37 Lars Wendler
2017-09-02 0:23 Lars Wendler
2017-02-18 18:57 Mike Frysinger
2015-08-28 2:23 Manuel Rüger
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=1585297364.caeb488b475bae6fe7fb261aec8c6ec85d64382b.polynomial-c@gentoo \
--to=polynomial-c@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