Skip to content

fix: emoji autocompletion overwriting preceding element - #3064

Merged
kfiven merged 3 commits into
cinnyapp:devfrom
wjaaaaaaat:dev
Aug 11, 2026
Merged

fix: emoji autocompletion overwriting preceding element#3064
kfiven merged 3 commits into
cinnyapp:devfrom
wjaaaaaaat:dev

Conversation

@wjaaaaaaat

@wjaaaaaaat wjaaaaaaat commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Fixes #3063. Also fixes a couple typos of "word" as "world".

The function getPrevWordRange (formerly known as getPrevWorldRange) would include the empty text children of elements like emojis, causing such elements to be deleted if they immediately preceded autocompletions.

It now stops if it detects a char === '' which indicates that it has encountered an empty text node. This allows emojis to be created next to each other without error.

this prevents the range from encroaching on the node of elements like emojis and pings to prevent them from being overwritten

@ajbura ajbura left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks!

@ajbura
ajbura requested a review from kfiven August 7, 2026 11:33
@wjaaaaaaat

Copy link
Copy Markdown
Contributor Author

I thought a bot was supposed to comment to let me sign the CLA?

@kfiven

kfiven commented Aug 10, 2026

Copy link
Copy Markdown
Member

@wjaaaaaaat Can you do a dummy commit or something to trigger the check again. None of the checks are triggered on you PR.

@github-actions

github-actions Bot commented Aug 10, 2026

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@wjaaaaaaat

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

ajbura added a commit to cinnyapp/cla that referenced this pull request Aug 10, 2026
@github-actions

Copy link
Copy Markdown

Preview: https://3064--cinny-pr.netlify.app
⚠️ Exercise caution. Use test accounts. ⚠️

@kfiven
kfiven merged commit c434e0d into cinnyapp:dev Aug 11, 2026
2 of 3 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants