Skip to content

Commit

Permalink
Fixed issue with syntax and undo/redo when overwriting selection
Browse files Browse the repository at this point in the history
  • Loading branch information
curlpipe committed Dec 16, 2024
1 parent aa827a9 commit 932ad14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/editing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ impl Editor {
if self.try_doc().is_some() {
let doc = self.try_doc().unwrap();
if !doc.is_selection_empty() && !doc.info.read_only {
self.try_doc_mut().unwrap().commit();
self.try_doc_mut().unwrap().remove_selection();
self.reload_highlight();
}
self.new_row()?;
// Handle the character insertion
Expand Down

0 comments on commit 932ad14

Please sign in to comment.