Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Re: _urls, _netscape, a seg fault and new completion thoughts



Tanaka Akira wrote:

> Maybe, a patch for _main_complete was forgotten in 8227.

Urgh, the ones for `_main_complete' and `compinit'.

I can only hope that this now applies cleanly.

Sorry!

Bye
 Sven

--- Completion/Core/_main_complete.old	Thu Oct 14 16:35:27 1999
+++ Completion/Core/_main_complete	Thu Oct 14 16:35:44 1999
@@ -51,6 +51,13 @@
   fi
 done
 
+# Now call the post-functions.
+
+for post in "$comppostfuncs[@]"; do
+  "$post"
+done
+comppostfuncs=()
+
 [[ "$compconfig[last_prompt]" = always ]] && compstate[last_prompt]=yes
 
 _lastcomp=( "${(@kv)compstate}" )
--- Completion/Core/compinit.old	Thu Oct 14 16:37:27 1999
+++ Completion/Core/compinit	Wed Oct 13 10:12:17 1999
@@ -112,6 +112,11 @@
   compconfig[correct_prompt]='correct to:'
 (( ${+compconfig[completer]} )) || compconfig[completer]=_complete
 
+# This can hold names of functions that are to be called after all
+# matches have been generated.
+
+comppostfuncs=()
+
 # This function is used to register or delete completion functions. For
 # registering completion functions, it is invoked with the name of the
 # function as it's first argument (after the options). The other

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author