Closed CreativeCactus closed 3 years ago
That's odd, I've never seen that behavior.
Hi, I have the same problem. I'm on bash version 5.1.4. Going back to mcfly version 0.5.1 or reverting commit 440249c9f1fe2a2e4fb58ef05de5ba265bb0d927 fixes the issue.
I think the ${READLINE_LINE[@]} > $MCFLY_HISTORY
added by this commit should be ${READLINE_LINE[@]} >> $MCFLY_HISTORY
instead. So it appends to the history file instead of overwriting it.
Thank you @kuehnelth, that makes sense!
I just pushed a fix to the repo— could you confirm that this fixes your bug @CreativeCactus?
Edit: and @kuehnelth!
Released in v0.5.3
Thanks. Just installed it. Works fine now.
Thanks for checking!
As the below shows, after performing a search (even if aborting), the
$MCFLY_HISTORY
file appears to be cleared, resulting in normal "history lines" navigation (up arrow) not working after thehistory -cr $MCFLY_HISTORY
.GNU bash, version 4.4.23(1)-release