editor: Fix invalid read-only with split pane (#28012)

Closes #28004

Release Notes:

- Fixed invalid read-only with split pane
This commit is contained in:
0x2CA 2025-04-09 08:09:34 +08:00 committed by GitHub
parent c8caae03df
commit 79c9f2bbd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1262,6 +1262,7 @@ impl Editor {
clone.selections.clone_state(&self.selections);
clone.scroll_manager.clone_state(&self.scroll_manager);
clone.searchable = self.searchable;
clone.read_only = self.read_only;
clone
}