emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/crdt 76da6ac 62/80: update buffer/user menu in post-com


From: ELPA Syncer
Subject: [elpa] externals/crdt 76da6ac 62/80: update buffer/user menu in post-command-hook to account for focus change
Date: Sat, 28 Aug 2021 10:57:42 -0400 (EDT)

branch: externals/crdt
commit 76da6acfac915de00e757aca0316b6edd43b741b
Author: Qiantan Hong <qhong@mit.edu>
Commit: Qiantan Hong <qhong@mit.edu>

    update buffer/user menu in post-command-hook to account for focus change
---
 crdt.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/crdt.el b/crdt.el
index 13db964..5bd3d07 100644
--- a/crdt.el
+++ b/crdt.el
@@ -1004,7 +1004,8 @@ Send message to other peers about any changes."
   (unless (eq crdt--buffer-network-name (crdt--session-focused-buffer-name 
crdt--session))
     (crdt--broadcast-maybe
      (crdt--format-message `(focus ,(crdt--session-local-id crdt--session) 
,crdt--buffer-network-name)))
-    (setf (crdt--session-focused-buffer-name crdt--session) 
crdt--buffer-network-name))
+    (setf (crdt--session-focused-buffer-name crdt--session) 
crdt--buffer-network-name)
+    (crdt--refresh-users-maybe))
   (let ((cursor-message (crdt--local-cursor)))
     (when cursor-message
       (crdt--broadcast-maybe (crdt--format-message cursor-message)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]