about summary refs log tree commit diff
path: root/Completion/Commands
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-21 08:05:28 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-06-21 08:05:28 +0000
commit1c710d46271eb0b7e41424fbbd30fa8403c69291 (patch)
tree3dcd59a0313946f6854c61d85d246afc720e8c5c /Completion/Commands
parent3ecad25c83a1156f50962d96d665b21d0a0cb788 (diff)
downloadzsh-1c710d46271eb0b7e41424fbbd30fa8403c69291.tar.gz
zsh-1c710d46271eb0b7e41424fbbd30fa8403c69291.tar.xz
zsh-1c710d46271eb0b7e41424fbbd30fa8403c69291.zip
make history completion use I{PREF,SUF}FIX (12011)
Diffstat (limited to 'Completion/Commands')
-rw-r--r--Completion/Commands/_history_complete_word5
1 files changed, 5 insertions, 0 deletions
diff --git a/Completion/Commands/_history_complete_word b/Completion/Commands/_history_complete_word
index 00d7ba369..300100f59 100644
--- a/Completion/Commands/_history_complete_word
+++ b/Completion/Commands/_history_complete_word
@@ -85,6 +85,11 @@ _history_complete_word_gen_matches () {
     opt="${opt}V"
   fi
 
+  PREFIX="$IPREFIX$PREFIX"
+  IPREFIX=
+  SUFFIX="$SUFFIX$ISUFFIX"
+  ISUFFIX=
+
   h_words=( "${(@)historywords[2,-1]}" )
   _wanted "$opt" history-words expl 'history word' \
       compadd -Q -a h_words