@@ -504,6 +504,7 @@ pub fn insert_char_prompt(prompt: &mut Prompt, c: char) {
505pub fn undo(view: &mut View, _count: usize) {
505pub fn undo(view: &mut View, _count: usize) {
506 if let Some(revert) = view.doc.history.undo() {
506 if let Some(revert) = view.doc.history.undo() {
507+ view.doc.version += 1;
507 view.doc.apply(&revert);
508 view.doc.apply(&revert);
@@ -512,6 +513,7 @@ pub fn undo(view: &mut View, _count: usize) {
513pub fn redo(view: &mut View, _count: usize) {
514pub fn redo(view: &mut View, _count: usize) {
514 if let Some(transaction) = view.doc.history.redo() {
515 if let Some(transaction) = view.doc.history.redo() {
516+ view.doc.version += 1;
515 view.doc.apply(&transaction);
517 view.doc.apply(&transaction);