Support multi-line commands from zsh to fix #34

This commit is contained in:
David Dworken
2022-11-19 22:27:08 -08:00
parent f5adac5140
commit a390bacf89
11 changed files with 120 additions and 9 deletions

View File

@ -35,7 +35,7 @@ PROMPT_COMMAND="__hishtory_postcommand; $PROMPT_COMMAND"
export HISTTIMEFORMAT=$HISTTIMEFORMAT
__history_control_r() {
READLINE_LINE=$(HISHTORY_TERM_INTEGRATION=1 hishtory tquery "$READLINE_LINE" | tr -d '\n')
READLINE_LINE=$(HISHTORY_TERM_INTEGRATION=1 hishtory tquery "$READLINE_LINE")
READLINE_POINT=0x7FFFFFFF
}