tcsh/tcsh-6.19.00-008-fix-ln-1-completion.patch
David Kaspar [Dee'Kej] 6950b90e74 tcsh-6.19.00-008-fix-ln-1-completion.patch added
> Fix ln(1) completion.
2016-05-03 17:11:23 +02:00

28 lines
1004 B
Diff

From 33f2a2b3e17194b38f68d710f200fca63bc91a38 Mon Sep 17 00:00:00 2001
From: christos <christos>
Date: Fri, 3 Jul 2015 16:52:47 +0000
Subject: [PATCH] Fix ln(1) completion. next word completions don't do partial
matches anymore (since the word has been completed...) so n/-/f etc don't
match -s anymore; change it to n/-*/f so that it works.
---
complete.tcsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/complete.tcsh b/complete.tcsh
index 41bdbb0..cceab4f 100644
--- a/complete.tcsh
+++ b/complete.tcsh
@@ -1009,7 +1009,7 @@ complete ln c/--/"(backup directory force no-dereference \
c/-/"(b d F f i n S s V v -)"/ \
n/{-S,--suffix}/x:'<suffix>'/ \
n/{-V,--version-control}/"(t numbered nil existing \
- never simple)"/ n/-/f/ N/-/x:'<link_name>'/ \
+ never simple)"/ n/-*/f/ N/-*/x:'<link_name>'/ \
p/1/f/ p/2/x:'<link_name>'/
complete touch c/--/"(date reference time help version)"/ \
c/-/"(a c d f m r t -)"/ \
--
2.5.5