Skip to content

Commit

Permalink
Fixing undo/redo out of bound access error
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenldl committed Aug 27, 2024
1 parent 5e315ee commit 14d3df1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/multi_file_view.ml
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ let keyboard_handler
Stack.push cur Vars.document_store_redo;
Document_store_manager.submit_update_req prev Ui_base.Vars.document_store;
sync_input_fields_from_document_store prev;
reset_document_selected ();
));
`Handled
)
Expand All @@ -587,6 +588,7 @@ let keyboard_handler
Stack.push cur Vars.document_store_undo;
Document_store_manager.submit_update_req next Ui_base.Vars.document_store;
sync_input_fields_from_document_store next;
reset_document_selected ();
));
`Handled
)
Expand Down

0 comments on commit 14d3df1

Please sign in to comment.