Skip to content

fix(textcursor): correct number of Up/Down movements - #512

Merged
ceccopierangiolieugenio merged 1 commit into
ceccopierangiolieugenio:mainfrom
slook:textcursor-moveUpDown-n
Nov 8, 2025
Merged

fix(textcursor): correct number of Up/Down movements#512
ceccopierangiolieugenio merged 1 commit into
ceccopierangiolieugenio:mainfrom
slook:textcursor-moveUpDown-n

Conversation

@slook

@slook slook commented Nov 7, 2025

Copy link
Copy Markdown
Contributor
  • Changed: Don't do recursive multiplication of n because it is already iterated for the required number of movePosition operations as this sub-procedure is called from within a for loop.

In future it might be considered better performance to do all moves in one go for relevant operations (Up, Down, Left, Right), but for now this at least fixes the function that was otherwise off by n orders of magnitude when n is more than 1.

@ceccopierangiolieugenio
ceccopierangiolieugenio merged commit 6410b77 into ceccopierangiolieugenio:main Nov 8, 2025
11 checks passed
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

Successfully merging this pull request may close these issues.

2 participants