From a0712fbd773107da76afbc98fb784886f99c7e15 Mon Sep 17 00:00:00 2001 From: Julian Sparber Date: Mon, 22 Dec 2025 20:53:13 +0100 Subject: [PATCH] app: Remove remote cursors when switching documents Closes: https://github.com/p2panda/reflection/issues/170 --- reflection-app/src/textbuffer.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/reflection-app/src/textbuffer.rs b/reflection-app/src/textbuffer.rs index 54f179d..8f23d07 100644 --- a/reflection-app/src/textbuffer.rs +++ b/reflection-app/src/textbuffer.rs @@ -96,6 +96,7 @@ mod imp { self.changed_handler.replace(Some(handle)); } + self.remote_cursors.take(); self.document_handlers.get().unwrap().set_target(document); self.document.replace(document.cloned()); }