zsh-autocomplete: Mismatched history due to history picked from $HISTFILE
Environment
zsh-autocomplete
version: 1f59fc6ec81a589dd744800fc5d92d371da5fc09- Zsh version: zsh-5.8-0-g77d203f
- Framework: none
- Plugin manager: none
~/.zshrc
file: https://pastebin.com/6E0pP4MJ
Please test if the bug occurs without config files:
$ cd $(mktemp -d) # Create a temp dir and enter it.
$ ZDOTDIR=$PWD HOME=$PWD zsh -f # Start a subshell in it without config files.
% source path/to/zsh-autocomplete.plugin.zsh # Source the plugin.
% # Insert here the steps you take to reproduce your bug.
Does the bug occur without config files?
- Not sure
If not, gradually add lines from your config file to the subshell until the bug appears.
Steps to reproduce
- Vanilla zsh with p10k theme,zsh-syntaxhighting,zsh-autosuggestions,zsh-autocomplete
Actual behavior
Wrong history gets selected and executed
Expected behavior
Right history gets selected and executed
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 31 (13 by maintainers)
Commits related to this issue
- Handle duplicates in history Fixes issue #165. — committed to marlonrichert/zsh-autocomplete by marlonrichert 3 years ago
- Re-add missing `autoload` Fixes a bug mentioned issue #165. — committed to marlonrichert/zsh-autocomplete by marlonrichert 3 years ago
- Fix bug in `compinit` logic Fixes a problem mentioned in issue #165. — committed to marlonrichert/zsh-autocomplete by marlonrichert 3 years ago
- Remove `zstyle` warnings …because people don't understand them & report them as bugs. See issues #165, #140 and #121. — committed to marlonrichert/zsh-autocomplete by marlonrichert 3 years ago
All good for me !!! Thanks a lot 😉
Ok I miswrote here, I meant zsh-autosuggestions not autocomplete