summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGilbert Sanchez <me@gilbertsanchez.com>2024-02-19 08:01:51 -0800
committerGitHub <noreply@github.com>2024-02-19 17:01:51 +0100
commit0891ec27a40421cd742a853885731aed63f412aa (patch)
tree14db95d5a2f2b50d3f1b7137321c9a06758040ee /src
parent1fed469ba8d8c3e7786e3a57822edb9fa024f4b4 (diff)
fix(character): also handle vi edit mode in pwsh (#5775)
* Add missing vi for char for Shell::Pwsh https://github.com/starship/starship/pull/5478#issuecomment-1886829331
Diffstat (limited to 'src')
-rw-r--r--src/modules/character.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/character.rs b/src/modules/character.rs
index 20695f63a..232b38288 100644
--- a/src/modules/character.rs
+++ b/src/modules/character.rs
@@ -37,7 +37,7 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
let mode = match (&context.shell, keymap) {
(Shell::Fish, "default")
| (Shell::Zsh, "vicmd")
- | (Shell::Cmd | Shell::PowerShell, "vi") => ShellEditMode::Normal,
+ | (Shell::Cmd | Shell::PowerShell | Shell::Pwsh, "vi") => ShellEditMode::Normal,
(Shell::Fish, "visual") => ShellEditMode::Visual,
(Shell::Fish, "replace") => ShellEditMode::Replace,
(Shell::Fish, "replace_one") => ShellEditMode::ReplaceOne,