zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: _look refinement.
@ 2000-05-16  0:51 Tanaka Akira
  0 siblings, 0 replies; only message in thread
From: Tanaka Akira @ 2000-05-16  0:51 UTC (permalink / raw)
  To: zsh-workers

This refines _look.

* display message when an argument is empty.
* remove `-f'.

Index: Completion/User/_look
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/User/_look,v
retrieving revision 1.3
diff -u -r1.3 _look
--- Completion/User/_look	2000/05/05 14:48:04	1.3
+++ Completion/User/_look	2000/05/16 00:48:42
@@ -8,11 +8,14 @@
   '-f[case insensitive]' \
   '-d[dictionary order]' \
   ':string:->string' \
-  ':dictionary file:_files -f' && return 0
+  ':dictionary file:_files' && return 0
 
 case "$state" in
 string)
-  [[ -n "$PREFIX" ]] &&
-      _wanted values expl 'word prefix' compadd - $(_call values $words[1] $PREFIX)
+  if [[ -n "$PREFIX" ]]; then
+    _wanted values expl 'word prefix' compadd - $(_call values $words[1] $PREFIX)
+  else
+    _message 'word prefix'
+  fi
   ;;
 esac
-- 
Tanaka Akira


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-05-16  0:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-16  0:51 PATCH: _look refinement Tanaka Akira

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).