Skip to content

[0.7.1] GVIM - :sh Inserts Character Sequences on Control Character and Modifier Key Input #8

@jthodge

Description

@jthodge

Description

Providing common control character (e.g. <Delete>) and modifier key (e.g. ^-signals, -navigation commands) input into GVIM's :sh shell inserts character sequences instead of executing the input's respective expected behavior.

Affected Control Character(s):

  • <Delete>

Affected Modifier Key(s):

  • ^

N.B. There are likely other modifier key combinations that also insert characters, but I've not tested them exhaustively.

Steps to Reproduce

  1. Open GVIM
  2. Type :sh
  3. Press <Enter>
  4. Type <Delete>
  5. Type a ^-signal (e.g. ^C, ^Z, ^\, ^T, etc.)
  6. Type an -navigation command (e.g. +, +, etc.)

Expected Behavior

  • <Delete> should delete the character(s) preceding the cursor.
  • ^C should send a SIGINT, causing the current process to terminate.
  • + should move the cursor back one word, + should move the cursor forward one word.

Actual Behavior

<Delete>

Image

  • Single <Delete> press inserts ?b
  • Two consecutive <Delete> presses inserts ?b followed by ?[J, to the left, producing ?[J?b
  • Holding <Delete> for ~3 seconds inserts ?[J?[J?[J?[[J?b?[[J?b?[[J?b?[Jbb

^-signal

Image

  • ^C inserts ??C
  • Other signals return their respective combination key prepended by ?? e.g. ??Z, etc.

-navigation command

Image

  • + inserts ?[Jkl
  • + inserts ?[Jkr

Logs

N/A

Environment

  • Platform and OS Version: macOS Sonoma 14.3
  • Playbit Version: 0.7.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions