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

fixed Caret.isAtStart #2448

Open
wants to merge 3 commits into
base: next
Choose a base branch
from
Open

Conversation

VKR981
Copy link

@VKR981 VKR981 commented Aug 20, 2023

the current Caret.isAtStart ignores white spaces causing this issue
#2429

Copy link
Member

@ilyamore88 ilyamore88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, could you add a test case for this bugfix?

@@ -120,7 +109,7 @@ export default class Caret extends Module {
return $.isEmpty(node) && !isLineBreak;
});

if (nothingAtLeft && focusOffset === firstLetterPosition) {
if (nothingAtLeft && focusOffset===0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lint your code pls

Copy link
Author

@VKR981 VKR981 Aug 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, I have added the test cases can you please review them? also I'm new to open source and TDD.

@VKR981 VKR981 requested a review from ilyamore88 August 20, 2023 17:09
Copy link
Member

@ilyamore88 ilyamore88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks👍

@neSpecc neSpecc enabled auto-merge (squash) August 20, 2023 17:25
@neSpecc neSpecc disabled auto-merge August 20, 2023 17:32
@kraddess
Copy link

kraddess commented Feb 7, 2024

Hey, can someone merge this pr?

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.

4 participants