about summary refs log tree commit diff
path: root/Functions/Zle/predict-on
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Zle/predict-on')
-rw-r--r--Functions/Zle/predict-on4
1 files changed, 2 insertions, 2 deletions
diff --git a/Functions/Zle/predict-on b/Functions/Zle/predict-on
index 4f0b15507..49d815e26 100644
--- a/Functions/Zle/predict-on
+++ b/Functions/Zle/predict-on
@@ -61,7 +61,7 @@ insert-and-predict () {
 	  # get out of that `case'.
 	  repeat 1
 	  do
-	    _style -s '' cursor crs
+	    zstyle -s ":completion${curcontext}" cursor crs
 	    case $crs in
 	    (complete)
 	      # At the place where the completion left it, if it is after
@@ -119,7 +119,7 @@ predict-limit-list() {
   then
     compstate[list]=''
     compstate[force_list]=yes
-  elif _style '' list always ]]
+  elif zstyle ":completion${curcontext}:predict" list always ]]
   then
     compstate[force_list]=yes
   fi