Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _perforce
- X-seq: zsh-workers 18942
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
- Subject: PATCH: _perforce
- Date: Mon, 11 Aug 2003 17:17:50 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Minor changes: a typo, plus restore usual autoremove behaviour of /
which was being overridden by _perforce's own suffix handling.
Index: Completion/Unix/Command/_perforce
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_perforce,v
retrieving revision 1.8
diff -u -r1.8 _perforce
--- Completion/Unix/Command/_perforce 16 Jul 2003 01:44:17 -0000 1.8
+++ Completion/Unix/Command/_perforce 11 Aug 2003 16:16:36 -0000
@@ -179,7 +179,7 @@
#
# Much of the information from Perforce is provided by calls to p4
# commands. This is done via the _call_program interface, as described
-# in the zshcompletesys manual page. Hence a suitable context with the
+# in the zshcompsys manual page. Hence a suitable context with the
# `command' style allows the user to take control of this call.
# The tags used are the name of the p4 command, or in the case of
# calls to help subcommands, `help-<subcommand>'. Note that if the
@@ -517,6 +517,11 @@
# Normal suffix removal
LBUFFER="$LBUFFER[1,-2]"
fi
+ elif [[ $LBUFFER[-1] = / ]]; then
+ # Normal suffix removal for directories.
+ if [[ $KEYS = (*[^[:print:]]*|[[:blank:]\;\&\|/]) ]]; then
+ LBUFFER="$LBUFFER[1,-2]"
+ fi
fi
}
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070
**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential
and/or privileged material.
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by
persons or entities other than the intended recipient is
prohibited.
If you received this in error, please contact the sender and
delete the material from any computer.
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author