<pre style='margin:0'>
Eitan Adler (grimreaper) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/7eafb5b914492cbbb62956177d8dbe6fea8ac9a0">https://github.com/macports/macports-ports/commit/7eafb5b914492cbbb62956177d8dbe6fea8ac9a0</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 7eafb5b nano: patch a misbinding of <Bsp> in nano
</span>7eafb5b is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 7eafb5b914492cbbb62956177d8dbe6fea8ac9a0
</span>Author: Eitan Adler <grimreaper@macports.org>
AuthorDate: Fri Sep 14 00:36:28 2018 -0700
<span style='display:block; white-space:pre;color:#404040;'> nano: patch a misbinding of <Bsp> in nano
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> correct a major misbinding of ^H and/or the Backspace key
</span><span style='display:block; white-space:pre;color:#404040;'> on some terminals and on some systems.
</span>---
editors/nano/Portfile | 3 ++
...en-Ctrl-Shift-Delete-has-no-keycode-don-t.patch | 46 ++++++++++++++++++++++
2 files changed, 49 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/editors/nano/Portfile b/editors/nano/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index eab6554..9ddb7b9 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/editors/nano/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/editors/nano/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,6 +4,7 @@ PortSystem 1.0
</span>
name nano
version 3.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories editors
platforms darwin freebsd
license GPL-3
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -37,6 +38,8 @@ use_parallel_build yes
</span>
set docdir ${prefix}/share/doc/${name}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles 0001-bindings-when-Ctrl-Shift-Delete-has-no-keycode-don-t.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>
post-destroot {
xinstall -d $destroot$docdir/html
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/editors/nano/files/0001-bindings-when-Ctrl-Shift-Delete-has-no-keycode-don-t.patch b/editors/nano/files/0001-bindings-when-Ctrl-Shift-Delete-has-no-keycode-don-t.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..4e8efeb
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/editors/nano/files/0001-bindings-when-Ctrl-Shift-Delete-has-no-keycode-don-t.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,46 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From 09ab2e3d0eeb33bc4d0702623404ba01b1f8fa9a Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: Benno Schulenberg <bensberg@telfort.nl>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Wed, 12 Sep 2018 13:18:17 +0200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] bindings: when Ctrl+Shift+Delete has no keycode, don't
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ use KEY_BSP
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+When curses gives no code for Ctrl+Shift+Delete, do not fall back
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+to KEY_BACKSPACE, because then ^H and/or <Backspace> get bound to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+'cutwordleft'.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+This fixes https://savannah.gnu.org/bugs/?54642.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Bug was introduced with version 3.0, commit e6429e78.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/nano.c | 2 +-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/nano.h | 1 +
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2 files changed, 2 insertions(+), 1 deletion(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/src/nano.c b/src/nano.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index c7e0ca2d..74e12439 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/nano.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/nano.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -2580,7 +2580,7 @@ int main(int argc, char **argv)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ controlhome = get_keycode("kHOM5", CONTROL_HOME);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ controlend = get_keycode("kEND5", CONTROL_END);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ controldelete = get_keycode("kDC5", CONTROL_DELETE);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- controlshiftdelete = get_keycode("kDC6", KEY_BACKSPACE);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ controlshiftdelete = get_keycode("kDC6", CONTROL_SHIFT_DELETE);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifndef NANO_TINY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /* Ask for the codes for Shift+Control+Left/Right/Up/Down. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ shiftcontrolleft = get_keycode("kLFT6", SHIFT_CONTROL_LEFT);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git a/src/nano.h b/src/nano.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index e1042759..7de34bf3 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/nano.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/nano.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -588,6 +588,7 @@ enum
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SHIFT_CONTROL_DOWN 0x414
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SHIFT_CONTROL_HOME 0x415
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SHIFT_CONTROL_END 0x416
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define CONTROL_SHIFT_DELETE 0x417
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define ALT_LEFT 0x421
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define ALT_RIGHT 0x422
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define ALT_UP 0x423
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+2.17.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>