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

Pressing enter #13

Open
IngwiePhoenix opened this issue Feb 26, 2016 · 1 comment
Open

Pressing enter #13

IngwiePhoenix opened this issue Feb 26, 2016 · 1 comment

Comments

@IngwiePhoenix
Copy link
Contributor

Why is it that when the line numbers are disabled, I have to press enter twice to get a new line?

@IngwiePhoenix
Copy link
Contributor Author

Debunked:

If the input does not have a trailing \n character, then the first press generates it - any subsequent one adds it.

Suggestion:
When the editor updates, check if a trailing newline character is present. If not, add it. Works flawless for me! :)

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