about summary refs log tree commit diff
path: root/Completion/Core/_alternative
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Core/_alternative')
-rw-r--r--Completion/Core/_alternative2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Core/_alternative b/Completion/Core/_alternative
index 791d7517e..73292cb52 100644
--- a/Completion/Core/_alternative
+++ b/Completion/Core/_alternative
@@ -7,7 +7,7 @@ subopts=()
 while getopts 'O:C:' opt; do
   case "$opt" in
   O) subopts=( "${(@P)OPTARG}" ) ;;
-  C) curcontext="${curontext}:$OPTARG" ;;
+  C) curcontext="${curcontext%:*}:$OPTARG" ;;
   esac
 done