From 3f7c2e25905cbbd83d5b09c3471c1134a7cb7d8f Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 2 Apr 2001 11:15:29 +0000 Subject: moved from Completion/Commands/_correct_word --- Completion/Base/Widget/_correct_word | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Completion/Base/Widget/_correct_word (limited to 'Completion/Base/Widget/_correct_word') diff --git a/Completion/Base/Widget/_correct_word b/Completion/Base/Widget/_correct_word new file mode 100644 index 000000000..11b37efb1 --- /dev/null +++ b/Completion/Base/Widget/_correct_word @@ -0,0 +1,20 @@ +#compdef -k complete-word \C-xc + +# Simple completion front-end implementing spelling correction. +# The maximum number of errors is set quite high, and +# the numeric prefix can be used to specify a different value. +# +# If configurations keys with the prefix `correctword_' are +# given they override those starting with `correct_'. + +setopt localoptions ${_comp_options[@]} + +local curcontext="$curcontext" + +if [[ -z "$curcontext" ]]; then + curcontext="correct-word:::" +else + curcontext="correct-word:${curcontext#*:}" +fi + +_main_complete _correct -- cgit 1.4.1