Fix window double borrows (#23739)

Fix bugs caused by the window context PR, where the window could be on
the stack and is then requested from the App.
This PR also adds derive macros for `AppContext` and `VisualContext` so
that it's easy to define further contexts in API code, such as
`editor::BlockContext`.

Release Notes:

- N/A
This commit is contained in:
Mikayla Maki
2025-01-27 21:56:29 +00:00
committed by GitHub
parent 29bfb56739
commit a7c549b85b
24 changed files with 465 additions and 297 deletions
+1 -1
View File
@@ -1271,7 +1271,7 @@ impl ClipboardItem {
for entry in self.entries.iter() {
if let ClipboardEntry::String(ClipboardString { text, metadata: _ }) = entry {
answer.push_str(text);
answer.push_str(&text);
any_entries = true;
}
}