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

r↵ does not insert the newline in the right place #39

Open
pseyfert opened this issue Oct 15, 2019 · 0 comments
Open

r↵ does not insert the newline in the right place #39

pseyfert opened this issue Oct 15, 2019 · 0 comments

Comments

@pseyfert
Copy link

How to reproduce:

starting from a textbox with

if ( b ) { f(); }
// trailing comment

One might want to introduce line breaks by moving the cursor on the whitespace in front of f() and type r↵. The result should then be

if ( b ) {
f(); }
// trailing comment

Contrary to the expectation, the result is

if ( b ) {f(); }

// trailing comment

i.e.

  • a line feed got inserted after (good)
  • the whitespace before the f() got removed (good)
  • everything after that whitespace did not get moved to the new line, after the linefeed (bad)

on linux, tested in firefox and google-chrome.

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