Skip to content

Commit 932ad14

Browse files
committed
Fixed issue with syntax and undo/redo when overwriting selection
1 parent aa827a9 commit 932ad14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/editor/editing.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ impl Editor {
3838
if self.try_doc().is_some() {
3939
let doc = self.try_doc().unwrap();
4040
if !doc.is_selection_empty() && !doc.info.read_only {
41+
self.try_doc_mut().unwrap().commit();
4142
self.try_doc_mut().unwrap().remove_selection();
42-
self.reload_highlight();
4343
}
4444
self.new_row()?;
4545
// Handle the character insertion

0 commit comments

Comments
 (0)