Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Multiline prompts and vi editing mode



On Jun 2, 10:29am, Michael Grubb wrote:
}
} function zle-line-input zle-keymap-select {
}     zle reset-prompt
} }

I presume "input" there should be "init"?  Otherwise this --

} zle -N zle-line-init

-- throws an error?

} zle -N zle-keymap-select
} 
} bindkey -v
} 
} So I remove the plugin from being loaded and do these steps one at a
} time manually and it turns out that the 'zle -N zle-keymap-select'
} line is what is causing my issue.

I'm still not able to reproduce this.  The reason for reset-prompt
called via the keymap select hook is to update the prompt to, for
example, display the current vi editing mode, though I don't know
anything about oh-my-zsh or about what plugin you might be trying
to use so I can't say what the exact reason is in this case.

I tend to suspect that this plugin (or some other one) is actually
assigning a new value to PROMPT or PS1 and it's a problem with that
new prompt, displayed when reset-prompt is run, that is causing the
behavior you see.



Messages sorted by: Reverse Date, Date, Thread, Author