Skip to content

ViModeIndicator not in effect on Vi mode during initilaization #3542

@darg2012

Description

@darg2012

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.

Exception report

N/A

Screenshot

Screen Shot 2023-01-11 at 10 31 53 AM

Screen Shot 2023-01-11 at 10 32 26 AM

Screen Shot 2023-01-11 at 10 33 12 AM

Environment data

PS Version: 7.2.0
PS HostName: ConsoleHost
PSReadLine Version: 2.1.0
PSReadLine EditMode: Vi
OS: Darwin Davids-M1-MacBook-Air.local 21.6.0 Darwin Kernel Version 21.6.0: Sun Nov  6 23:29:57 PST 2022; root:xnu-8020.240.14~1/RELEASE_ARM64_T8101 arm64
BufferWidth: 85
BufferHeight: 24

Steps to reproduce

Have in profile or type in cli the following

Set-PSReadlineOption -EditMode Vi
Set-PSReadlineOption -ViModeIndicator Cursor

Expected behavior

Cursor should change as Set-PSReadlineOption -ViModeIndicator Cursor is being set.

The ViModeIndicator setting is not loaded initially on Vi mode until insert mode is escaped from and reentered. This applies to both the cursor option or a custom script like in #1233.

Actual behavior

No change to the cursor.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions