Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot replace in an escape (\{ *** }) pattern #364

Open
peterszerzo opened this issue Sep 1, 2022 · 0 comments
Open

Cannot replace in an escape (\{ *** }) pattern #364

peterszerzo opened this issue Sep 1, 2022 · 0 comments

Comments

@peterszerzo
Copy link

When using this plugin working on Elm code, pressing ds{ in normal mode on following pattern (cursor position indicated with a ):

List.map
  (\{ fieldOne, █ fieldTwo } ->
      { fieldOne = fieldOne ++ "s"
      , fieldTwo = fieldTwo ++ "y"
      }
  )
  items

results in

List.map
  (\{ fieldOne, fieldTwo } ->
      {}
  )
  items

as in it removes content between the following curly bracket pair, not the one around the cursor. The only distinguishing factor between this case and others I usually encounter is the preceding \ character.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant