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

bugfix for indents after #410 #415

Merged
merged 4 commits into from
Feb 13, 2024
Merged

Conversation

Loottoo
Copy link
Contributor

@Loottoo Loottoo commented Feb 12, 2024

Since #410 there is an error when copypasting code on a line that already has code: "Uncaught RangeError: Invalid count value: -2"
Adding Math.max() as a temporary solution, not sure what is causing it?

Adding back a bugfix (prevent auto-indents on enter from adding up infinitely when the cursor is outside of an open bracket) that disappeared with the change to some of the functions

added a selectionDirection constant to prevent the selection from flipping around when tabbing (cursor used to always jump to 'to' position, even when it started at 'from')

Since commit Mitcheljager#410 there is an error when copypasting a single line (no problem with more than 1 line):
"Uncaught RangeError: Invalid count value: -2"
Adding Math.max() as a temporary solution, not sure what is causing it?

Adding back a bugfix (prevent auto-indents on enter from adding up infinitely when the cursor is outside of an open bracket) that disappeared with the change to some of the functions

added a selectionDirection constant to prevent the selection from flipping around when tabbing (cursor used to always jump to 'to' position, even when it started at 'from')
ESLint sure is picky 😬
app/javascript/src/utils/codemirror/indent.js Outdated Show resolved Hide resolved
app/javascript/src/utils/codemirror/indent.js Outdated Show resolved Hide resolved
Loottoo and others added 2 commits February 13, 2024 00:49
@Mitcheljager Mitcheljager merged commit cc5a3eb into Mitcheljager:master Feb 13, 2024
6 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