Skip to content

fix: correct typo in code-mirror-utils.js - I would be glad to become your contributor#420

Open
MatrixNeoKozak wants to merge 1 commit into
LivelyKernel:gh-pagesfrom
MatrixNeoKozak:fix/improvement-1780510802968
Open

fix: correct typo in code-mirror-utils.js - I would be glad to become your contributor#420
MatrixNeoKozak wants to merge 1 commit into
LivelyKernel:gh-pagesfrom
MatrixNeoKozak:fix/improvement-1780510802968

Conversation

@MatrixNeoKozak
Copy link
Copy Markdown

Summary of changes

Corrected a typo in the hasCleanRight utility function within src/client/utils/code-mirror-utils.js, where the property co was incorrectly used instead of ch to define the column index for a CodeMirror range calculation.

Rationale behind the implementation

The property co is not a valid CodeMirror range position attribute, which would cause the hasCleanRight function to fail when calculating the range. The correct attribute is ch.

Technical impact analysis

This fix ensures that hasCleanRight correctly identifies the range to the right of the given position, restoring the intended functionality of checking for blank space in CodeMirror editors within the Lively4 environment.

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.

1 participant