summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2010-05-04 00:14:00 +0000
committeragc <agc@pkgsrc.org>2010-05-04 00:14:00 +0000
commit72d6a2008b3ee49bb279e6f2ddb2a87a0c0f94c3 (patch)
treedd6e83021eef0fcd2894470e02921f254016390b /shells
parent577b6a4391a5550eb26a78d606543dfe02ab49d8 (diff)
downloadpkgsrc-72d6a2008b3ee49bb279e6f2ddb2a87a0c0f94c3.tar.gz
Add a patch (already sent upstream) to fix the behavior (slippery slope,
sorry) of 'b', 'e' and 'w' commands in vi editing, when confronted with a '_' character - this patch makes tcsh consider '_' characters to be part of the word.
Diffstat (limited to 'shells')
-rw-r--r--shells/tcsh/distinfo3
-rw-r--r--shells/tcsh/patches/patch-ad21
2 files changed, 23 insertions, 1 deletions
diff --git a/shells/tcsh/distinfo b/shells/tcsh/distinfo
index d72490e80dd..aa72443c534 100644
--- a/shells/tcsh/distinfo
+++ b/shells/tcsh/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.26 2010/03/26 14:09:50 hauke Exp $
+$NetBSD: distinfo,v 1.27 2010/05/04 00:14:00 agc Exp $
SHA1 (tcsh-6.17.00.tar.gz) = 9bf67d5ce1b406178e9ba535ecd34553fe0d4d36
RMD160 (tcsh-6.17.00.tar.gz) = 2cc41a895799ade6d62640f877bb626f136dac35
@@ -6,3 +6,4 @@ Size (tcsh-6.17.00.tar.gz) = 890084 bytes
SHA1 (patch-aa) = bd2c3a5814b17675c56618feae9184548e40c0d0
SHA1 (patch-ab) = ab71a3826bbcef0702a7d43446f13454176aa671
SHA1 (patch-ac) = b08d073d947775c0bedaaf53c55bbd6c6c63c6d2
+SHA1 (patch-ad) = 7db4fbbcafb1d2ed1b0e68dd70373e6e5fac93e6
diff --git a/shells/tcsh/patches/patch-ad b/shells/tcsh/patches/patch-ad
new file mode 100644
index 00000000000..e2dfb75f667
--- /dev/null
+++ b/shells/tcsh/patches/patch-ad
@@ -0,0 +1,21 @@
+$NetBSD: patch-ad,v 1.11 2010/05/04 00:14:00 agc Exp $
+
+fix 'e' navigation in vi mode to classify '_' chars as part of words
+
+--- ed.chared.c 2010/04/02 00:04:39 1.1
++++ ed.chared.c 2010/04/02 00:04:59
+@@ -832,11 +832,11 @@
+ while ((p < high) && Isspace(*p))
+ p++;
+
+- if (Isalnum(*p))
+- while ((p < high) && Isalnum(*p))
++ if (isword(*p))
++ while ((p < high) && isword(*p))
+ p++;
+ else
+- while ((p < high) && !(Isspace(*p) || Isalnum(*p)))
++ while ((p < high) && !(Isspace(*p) || isword(*p)))
+ p++;
+ }
+