@@ -2564,7 +2564,7 @@ async fn make_format_callback(
25642564 if let Ok(format) = format {
25652565 if doc.version() == doc_version {
25662566 apply_transaction(&format, doc, view);
2567− doc.append_changes_to_history(view.id);
2567+ doc.append_changes_to_history(view);
25682568 doc.detect_indent_and_line_ending();
25692569 view.ensure_cursor_in_view(doc, scrolloff);
25702570 } else {
@@ -3365,7 +3365,7 @@ fn later(cx: &mut Context) {
33653365
33663366fn commit_undo_checkpoint(cx: &mut Context) {
33673367 let (view, doc) = current!(cx.editor);
3368− doc.append_changes_to_history(view.id);
3368+ doc.append_changes_to_history(view);
33693369}
33703370
33713371// Yank / Paste
@@ -3677,7 +3677,7 @@ fn replace_selections_with_clipboard_impl(
36773677 });
36783678
36793679 apply_transaction(&transaction, doc, view);
3680− doc.append_changes_to_history(view.id);
3680+ doc.append_changes_to_history(view);
36813681 }
36823682 Err(e) => return Err(e.context("Couldn't get system clipboard contents")),
36833683 }
@@ -4884,7 +4884,7 @@ fn shell(cx: &mut compositor::Context, cmd: &str, behavior: &ShellBehavior) {
48844884 let transaction = Transaction::change(doc.text(), changes.into_iter())
48854885 .with_selection(Selection::new(ranges, selection.primary_index()));
48864886 apply_transaction(&transaction, doc, view);
4887− doc.append_changes_to_history(view.id);
4887+ doc.append_changes_to_history(view);
48884888 }
48894889
48904890 // after replace cursor may be out of bounds, do this to