about summary refs log tree commit diff
path: root/Completion/Commands/_correct_word
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Commands/_correct_word')
-rw-r--r--Completion/Commands/_correct_word6
1 files changed, 5 insertions, 1 deletions
diff --git a/Completion/Commands/_correct_word b/Completion/Commands/_correct_word
index e0fee1fff..46480da47 100644
--- a/Completion/Commands/_correct_word
+++ b/Completion/Commands/_correct_word
@@ -9,6 +9,10 @@
 
 local curcontext="$curcontext"
 
-[[ -z "$curcontext" ]] && curcontext=":correct-word"
+if [[ -z "$curcontext" ]]; then
+  curcontext="correct-word:::"
+else
+  curcontext="correct-word:${curcontext#*:}"
+fi
 
 _main_complete _correct