Skip to content

Commit

Permalink
Fix writes from insert mode not properly updating the revision history
Browse files Browse the repository at this point in the history
  • Loading branch information
omentic committed Jul 16, 2023
1 parent d3ce6c3 commit 6ef36e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helix-term/src/commands/typed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ fn write_impl(
None
};

doc.append_changes_to_history(view);

if fmt.is_none() {
let id = doc.id();
cx.editor.save(id, path, force)?;
Expand Down

0 comments on commit 6ef36e9

Please sign in to comment.