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

Cursor position wrong after (1) CTRL+A and (2) " character is entered #53

Closed
czosel opened this issue Apr 2, 2021 · 3 comments
Closed

Comments

@czosel
Copy link

czosel commented Apr 2, 2021

Hi @antonmedv

First of all, thanks for your work on codejar! 🙂

I noticed the following issue with the cursor position: When the editor content is selected with CTRL+A and after the " character is entered, the cursor is placed at behind the two "" characters instead of the middle. This seems to happen no matter what the input is, except when it is already "" before - then the cursor is placed before the two "" characters.

When I select the entire content of the file using my mouse or SHIFT + arrow keys, the issue doesn't appear: The cursor is placed correctly between the two "" caracters.

I was able to reproduce the issue in both Firefox and Chromium.

@antonmedv
Copy link
Owner

I think I know what is causing it.

@antonmedv
Copy link
Owner

Done! Now CodeJar will wrap such code (as other editors do).

@czosel
Copy link
Author

czosel commented Apr 3, 2021

The wrapping works great - thank you so much! 💯

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

2 participants