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

the cursor miscalculates columns #2702

Open
origedit opened this issue Oct 12, 2024 · 1 comment
Open

the cursor miscalculates columns #2702

origedit opened this issue Oct 12, 2024 · 1 comment

Comments

@origedit
Copy link

  1. set tabs to be bigger than 1 space
  2. write some code
  3. enter an indented line
  4. jump up or down from it to a differetly indented line
  5. the cursor will be off by the difference in the amount of tabs

the functions lineUp and lineDown count the columns in characters and not visible units. looks like there's a need for a function that counts the visible amount of columns from a given line.

apologies for not suggesting concrete code

@Miguel-hrvs
Copy link
Contributor

Miguel-hrvs commented Oct 12, 2024

I think that I mixed this issue with this one: #2330
You mean another thing right?

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