Skip to content

Commit 6ef36e9

Browse files
committed
Fix writes from insert mode not properly updating the revision history
ref: helix-editor#7226
1 parent d3ce6c3 commit 6ef36e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

helix-term/src/commands/typed.rs

+2
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,8 @@ fn write_impl(
350350
None
351351
};
352352

353+
doc.append_changes_to_history(view);
354+
353355
if fmt.is_none() {
354356
let id = doc.id();
355357
cx.editor.save(id, path, force)?;

0 commit comments

Comments
 (0)