Skip to content

Commit

Permalink
disable cursor decoration when mapping is uninitialized - closes #156
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonad committed Jun 25, 2024
1 parent 8f48d63 commit f41a3e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/cursor-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const createDecorations = (
const decorations = []
if (
ystate.snapshot != null || ystate.prevSnapshot != null ||
ystate.binding === null
ystate.binding.mapping.size === 0
) {
// do not render cursors while snapshot is active
return DecorationSet.create(state.doc, [])
Expand Down

0 comments on commit f41a3e1

Please sign in to comment.