We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c61bb7 commit 9747e35Copy full SHA for 9747e35
jupyter_ydoc/yunicode.py
@@ -63,6 +63,10 @@ def set(self, value: str) -> None:
63
:param value: The content of the document.
64
:type value: str
65
"""
66
+ if self.get() == value:
67
+ # no-op if the values are already the same,
68
+ # to avoid side-effects such as cursor jumping to the top
69
+ return
70
with self._ydoc.transaction():
71
# clear document
72
self._ysource.clear()
0 commit comments