diff options
author | 2020-08-12 11:43:39 +0200 | |
---|---|---|
committer | 2020-08-12 11:43:48 +0200 | |
commit | 19cf957af44095b7408ea2d3f8366ea653f7557e (patch) | |
tree | 5f67e10c0ccefc86c0fc5e92b6b928c36acda05d /app-editors/nano/files/nano-4.8-justify_keystroke_crash_fix.patch | |
parent | app-editors/nano: Bump to version 5.1 (diff) | |
download | gentoo-19cf957af44095b7408ea2d3f8366ea653f7557e.tar.gz gentoo-19cf957af44095b7408ea2d3f8366ea653f7557e.tar.bz2 gentoo-19cf957af44095b7408ea2d3f8366ea653f7557e.zip |
app-editors/nano: Removed old
Package-Manager: Portage-3.0.2, Repoman-2.3.23
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'app-editors/nano/files/nano-4.8-justify_keystroke_crash_fix.patch')
-rw-r--r-- | app-editors/nano/files/nano-4.8-justify_keystroke_crash_fix.patch | 34 |
1 files changed, 0 insertions, 34 deletions
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 deleted file mode 100644 index e18425a6b802..000000000000 --- a/app-editors/nano/files/nano-4.8-justify_keystroke_crash_fix.patch +++ /dev/null @@ -1,34 +0,0 @@ -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 - |