Repository navigation
Add delete word forward - #4
Merged
Merged
Conversation
trueadm
reviewed
Jan 18, 2021
| let foundNonWhitespace = false; | ||
| for (let s = startIndex; s < textContent.length; s++) { | ||
| const char = textContent[s]; | ||
| if (char === ' ') { |
Contributor
There was a problem hiding this comment.
I think we need to match on other kinds of whitespace (eg. em spaces, en spaces, maybe tabs – although I haven't thought about that one yet).
Filed #9.
3 tasks done
zurfyx
added a commit
that referenced
this pull request
Oct 30, 2026
## Description `KNOWN_OPEN` said seed 1045 loses text typed into a table a peer removes. Minimized, the seed is two operations: one client makes the paragraph inside a box a check list, which replaces the box with the list, while another inserts a table into that box. The table goes with the box (delete wins), which the Yjs 13 layouts lose too. The comment now says that. Comments only. ## Test plan ### Before ``` $ FUZZ_SEED=1045 pnpm exec vitest run --project unit packages/lexical-y/src/__tests__/unit/Fuzz.test.ts [r0] C2 #4 list check paragraph("<0.14>") [r0] A1 #6 table table(tablerow(tablecell(paragraph("<6.0>")) tablecell(paragraph("<6.1>"))) tabl in test_box loss?: <6.0>[line,op6],<6.1>[line,op6],<6.2>[line,op6],<6.3>[line,op6] ``` (the minimized script, from the fuzz utilities' `minimize`) ### After ``` $ pnpm exec vitest run --project unit packages/lexical-y/src/__tests__/unit/Fuzz.test.ts Test Files 1 passed (1) Tests 16 passed (16) ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mostly the same as deleteWordBackward with a slightly different logic