Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

Check what the current context is before we reset the prompt #56

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions modules/editor/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,12 @@ function editor-info {
fi

unset REPLY

zle reset-prompt
zle -R
# If we aren't within one of the specified contexts, then we want to reset
# the prompt with the appropriate editor keymap if it's defined.
if [[ $CONTEXT != (select|cont) ]]; then
zle reset-prompt
zle -R
fi
}
zle -N editor-info

Expand Down