Skip to content

Commit ad3847f

Browse files
committed
jupyter: do not broadcast cursor change if the cell isn't focused (e.g., if another user moves your cursor)
1 parent 088f01f commit ad3847f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packages/frontend/jupyter/codemirror-editor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ export const CodeMirrorEditor: React.FC<CodeMirrorEditorProps> = ({
338338
}
339339

340340
function cm_cursor(): void {
341-
if (cm.current == null || actions == null) {
341+
if (cm.current == null || actions == null || !cm_is_focused.current) {
342342
return;
343343
}
344344
const sel = cm.current.listSelections();

0 commit comments

Comments
 (0)