-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #348, fix #386 #457
base: master
Are you sure you want to change the base?
Fix #348, fix #386 #457
Conversation
@dvorka is there a chance this can be shipped in the next release? |
@vaygr Sure, I will retest this PR and might do a patch release. Originally I was not able to repro the bug, I will try to do that once more. |
@vaygr I tested the scenarios on Anyway, I will build Can you please share which shell (bash or zsh), OS and |
@dvorka this was tested on Manjaro with 3.1.0. bash 5.1.16(1)-release. |
@vaygr thanks! |
This by the way is reproducible not only with Enter, but with Tab as well. This is what I get when trying to remove a random entry and select $ hh --
tig
history -r
$ tighistory -r
bash: tighistory: command not found
Relevant hstr config: # hstr
export HH_CONFIG=keywords
export HH_PROMPT="// "
shopt -s histappend # append new history items to .bash_history
export HISTCONTROL=ignorespace # leading space hides commands from history
export HISTFILESIZE=10000 # increase history file size (default is 500)
export HISTSIZE=${HISTFILESIZE} # increase history size (default is 500)
export PROMPT_COMMAND="history -a; history -n; ${PROMPT_COMMAND}" # mem/file sync
# if this is interactive shell, then bind hh to Ctrl-r (for Vi mode check doc)
if [[ $- =~ .*i.* ]]; then bind '"\C-r": "\C-a hh -- \C-j"'; fi |
Rebased to fix the conflict introduced in 451758c#diff-258da76bc59b38c71c18642eba6ab2c8d4d8e63636d069002ff59e3d7f7f1b2cL408-R408. |
Steps to reproduce the bug:
history -r
appended to the chosen command.OR
history -r
prepended before the chosen command.This is reproducible on current master.
I have no idea how this
history -r
was intended to work in the first place, nor do I know how to preventhistory -r
from appearing on screen. At least it produces no output, and that's good enough for my workflow.