Merge pull request #672 from zed-industries/fix-unfollowing-on-edit

Automatically unfollow leader only for edits that originate from the follower editor
This commit is contained in:
Nathan Sobo
2022-03-24 13:26:28 -06:00
committed by GitHub
11 changed files with 563 additions and 463 deletions
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -198,7 +198,7 @@ impl FollowableItem for Editor {
fn should_unfollow_on_event(event: &Self::Event, _: &AppContext) -> bool {
match event {
Event::Edited { local } => *local,
Event::Edited => true,
Event::SelectionsChanged { local } => *local,
Event::ScrollPositionChanged { local } => *local,
_ => false,