Extend tcsh patch to static-tcsh - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
(HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset 0ae6ecc163da28b42d33cdb4cf5e374facfd5775
(DIR) parent cbd090faf6bf3734268faded42c01f83d0621546
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Thu, 9 May 2019 16:01:27
Extend tcsh patch to static-tcsh
Diffstat:
shells/static-tcsh/patch-ed.chared.c.patch | 23 +++++++++++++++++++++++
shells/static-tcsh/patch-ed.inputl.c.patch | 14 ++++++++++++++
shells/static-tcsh/patch-tc.const.c.patch | 16 ++++++++++++++++
shells/static-tcsh/patch-tcsh.man | 17 +++++++++++++++++
shells/static-tcsh/patch-tcsh.man.new | 18 ++++++++++++++++++
5 files changed, 88 insertions(+), 0 deletions(-)
---
diff -r cbd090faf6bf -r 0ae6ecc163da shells/static-tcsh/patch-ed.chared.c.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/static-tcsh/patch-ed.chared.c.patch Thu May 09 16:01:27 2019 +0200
@@ -0,0 +1,23 @@
+$NetBSD$
+
+Add support for `vimoveback' in order to move the cursor back for
+vi-cmd-mode (like vi(1), editline(3), etc.)
+
+--- ed.chared.c.orig 2015-08-19 14:29:55.000000000 +0000
++++ ed.chared.c
+@@ -1404,14 +1404,8 @@ v_cmd_mode(Char c)
+
+ inputmode = MODE_INSERT;
+ c_alternativ_key_map(1);
+-#ifdef notdef
+- /*
+- * We don't want to move the cursor, because all the editing
+- * commands don't include the character under the cursor.
+- */
+- if (Cursor > InputBuf)
++ if (adrof(STRvimoveback) && Cursor > InputBuf)
+ Cursor--;
+-#endif
+ RefCursor();
+ return(CC_NORM);
+ }
diff -r cbd090faf6bf -r 0ae6ecc163da shells/static-tcsh/patch-ed.inputl.c.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/static-tcsh/patch-ed.inputl.c.patch Thu May 09 16:01:27 2019 +0200
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Do not add a '\n' on top of the run-help command.
+
+--- ed.inputl.c.orig 2012-10-19 15:23:32.000000000 +0000
++++ ed.inputl.c
+@@ -533,7 +533,6 @@ Inputl(void)
+ break;
+
+ case CC_HELPME:
+- xputchar('\n');
+ /* should catch ^C here... */
+ (void) tenematch(InputBuf, LastChar - InputBuf, PRINT_HELP);
+ Refresh();
diff -r cbd090faf6bf -r 0ae6ecc163da shells/static-tcsh/patch-tc.const.c.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/static-tcsh/patch-tc.const.c.patch Thu May 09 16:01:27 2019 +0200
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Add support for `vimoveback' in order to move the cursor back for
+vi-cmd-mode (like vi(1), editline(3), etc.)
+
+--- tc.const.c.orig 2015-09-08 15:49:53.000000000 +0000
++++ tc.const.c
+@@ -87,6 +87,8 @@ Char STROSTYPE[] = { 'O', 'S', 'T', 'Y',
+ Char STRedit[] = { 'e', 'd', 'i', 't', '\0' };
+ Char STReditors[] = { 'e', 'd', 'i', 't', 'o', 'r', 's', '\0' };
+ Char STRvimode[] = { 'v', 'i', 'm', 'o', 'd', 'e', '\0' };
++Char STRvimoveback[] = { 'v', 'i', 'm', 'o', 'v', 'e', 'b', 'a', 'c', 'k',
++ '\0' };
+ Char STRaddsuffix[] = { 'a', 'd', 'd', 's', 'u', 'f', 'f', 'i', 'x',
+ '\0' };
+ Char STRcsubstnonl[] = { 'c', 's', 'u', 'b', 's', 't', 'n', 'o', 'n', 'l',
diff -r cbd090faf6bf -r 0ae6ecc163da shells/static-tcsh/patch-tcsh.man
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/static-tcsh/patch-tcsh.man Thu May 09 16:01:27 2019 +0200
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Document `vimoveback' option.
+
+--- tcsh.man.orig 2016-11-24 15:04:52.000000000 +0000
++++ tcsh.man
+@@ -4795,6 +4795,10 @@ may be explicitly set or unset by the us
+ operations if required.
+ .RE
+ .TP 8
++.B vimoveback \fR(+)
++If set, move the cursor back when entering vi command mode.
++See also \fBvimode\fR.
++.TP 8
+ .B visiblebell \fR(+)
+ If set, a screen flash is used rather than the audible bell.
+ See also \fBnobeep\fR.
diff -r cbd090faf6bf -r 0ae6ecc163da shells/static-tcsh/patch-tcsh.man.new
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/static-tcsh/patch-tcsh.man.new Thu May 09 16:01:27 2019 +0200
@@ -0,0 +1,18 @@
+$NetBSD$
+
+Document `vimoveback' option.
+
+--- tcsh.man.new.orig 2016-11-24 15:06:09.000000000 +0000
++++ tcsh.man.new
+@@ -8706,6 +8706,11 @@ may be explicitly set or unset by the us
+ operations if required.
+ .RE
+ .TP 8
++.B vimoveback \fR(+)
++If set, move the cursor back when entering vi command mode.
++See also
++.Va vimode
++.TP 8
+ .B visiblebell \fR(+)
+ If set, a screen flash is used rather than the audible bell.
+ See also