You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An unexpected error occurred in the renderer process.
Stack Trace
Error: Failed to execute 'setStart' on 'Range': The offset 4294967292 is larger than the node's length (491).
at Object.select (file:///usr/lib/marktext/app.asar/dist/electron/webpack:/src/muya/lib/selection/index.js:346:11)
at Object.setCursorRange (file:///usr/lib/marktext/app.asar/dist/electron/webpack:/src/muya/lib/selection/index.js:491:10)
at aa.setCursor (file:///usr/lib/marktext/app.asar/dist/electron/webpack:/src/muya/lib/contentState/index.js:205:15)
at aa.partialRender (file:///usr/lib/marktext/app.asar/dist/electron/webpack:/src/muya/lib/contentState/index.js:257:12)
at aa.inputHandler (file:///usr/lib/marktext/app.asar/dist/electron/webpack:/src/muya/lib/contentState/inputCtrl.js:324:51)
at HTMLDivElement.<anonymous> (file:///usr/lib/marktext/app.asar/dist/electron/webpack:/src/muya/lib/eventHandler/keyboard.js:203:22)
Version
Mark Text: v0.16.3 (c1d603f)
Operating system: Linux x64 5.10.59-1-MANJARO (linux)
The text was updated successfully, but these errors were encountered:
Merging two lines of white-spaces (here spaces) result in an editor crash because the spaces are converted into a code bock. The cursor is invalid after this operation and overflows when setting the cursor in DOM.
Steps:
Type in editor mode and set cursor the the given position:
Type a and hit enter
Type two or three spaces and hit enter
Type two or three spaces and hit enter
Type b and position cursor
Press Shift, once ArrorLeft while holding shift and afterwards Backspace
Either the code block is generated and the correct cursor should be set or
all spaces are replaced by one space and the cursor may be adjusted.
Temporary Workaround:
Validate cursor before setting and use a fallback.
Stack Trace:
index.js?4d53:346 Uncaught DOMException: Failed to execute 'setStart' on 'Range': The offset 4294967293 is invalid.
at Selection.select (webpack-internal:///./src/muya/lib/selection/index.js:360:11)
at Selection.setCursorRange (webpack-internal:///./src/muya/lib/selection/index.js:527:10)
at ContentState.setCursor (webpack-internal:///./src/muya/lib/contentState/index.js:241:56)
at ContentState.partialRender (webpack-internal:///./src/muya/lib/contentState/index.js:326:12)
at ContentState.inputHandler (webpack-internal:///./src/muya/lib/contentState/inputCtrl.js:366:51)
at HTMLDivElement.inputHandler (webpack-internal:///./src/muya/lib/eventHandler/keyboard.js:248:22)
Description
An unexpected error occurred in the renderer process.
Stack Trace
Version
Mark Text: v0.16.3 (c1d603f)
Operating system: Linux x64 5.10.59-1-MANJARO (linux)
The text was updated successfully, but these errors were encountered: