Skip to content

String interpolations with " in them confuse evil inner detection #21

@Atemu

Description

@Atemu

Consider the following snippet:

    (enableFeature withPixelutils "pixelutils")

    "--bindir=${placeholder "bin"}/bin"

Placing the cursor inside pixelutils and entering di" in evil-mode deletes everything inside the quotes as expected.

Doing the same with the cursor placed anywhere within the second string however has strange results:

  • Before "bin": ""bin"}/bin"
  • Inside "bin": "--bindir=${placeholder "bin""
  • After "bin": "--bindir=${placeholder "bin""

I don't know what exact heuristics evil-mode uses to determine quotation boundaries but something is obviously awry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions