Skip to content

[BUG] execute-keys inconsistency when evaluating literal control characters #5284

Open
@tuftman-0

Description

Version of Kakoune

v2024.05.10

Reproducer

Ok this is a little confusing to write out because we're dealing with literally writing out things that would normally signify a key press.

to reproduce bug type these two expressions out in kakoune

  1. :exec i<control r literal char># written like exec i then insert the <c-r> char by pressing <c-v><c-r> then adding # after
  2. :exec i<c-r># when written char for char literally

these output different results

Outcome

output of first expression
-> writes # at each cursor

output of second expression
-> writes the index of the cursor at each cursor

Expectations

both expressions should write the index of each cursor at each cursor
the <c-r> literal character should be evaluated the same as literally typing out <c-r>

Additional information

I've already tried enclosing the expressions in quotes, it doesn't make a difference

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions