ElyDoc: mail merge keeps the template chosen with the data; previews are never templates (D-02)

This commit is contained in:
ZacharyZhang-NY committed 2026-10-09 12:27:13 -04:00
1 parent 1f4807c81c
commit 139e8f6250
9 files changed
+102 -17

No files matched your search

+9
View File
@@ -463,3 +463,12 @@ fn an_outside_change_asks_and_keep_mine_overwrites() {
mod find;
mod more;
mod overlap;
impl Docs {
/// Chooses the active tab as template, then types a field.
pub(crate) fn field_here(&mut self, header: &str, cx: &mut gpui::Context<Self>) {
let active = self.core.active;
self.merge.update(cx, |merge, _| merge.source = active);
self.insert_field(header, cx);
}
}