Skip to content

Commit

Permalink
Ensure cell contents are saved when using external editor
Browse files Browse the repository at this point in the history
  • Loading branch information
joouha committed May 11, 2021
1 parent d3c25ba commit 4dcfc70
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions euporie/cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ def load_key_bindings(self):
async def edit_in_editor(event):
self.editing = True
await self.input_box.buffer.open_in_editor()
self.nb.dirty = True
self.editing = False
exit_edit_mode(event)

@kb.add(
"enter",
Expand Down Expand Up @@ -159,8 +158,6 @@ def exit_edit_mode(event):
@kb.add("c-r", group="Notebook", desc="Run cell")
@kb.add("c-f20")
def run_or_render(event):
self.input = self.input_box.text
self.nb.dirty = True
exit_edit_mode(event)
if self.cell_type == "markdown":
self.output_box.children = self.rendered_outputs
Expand Down

0 comments on commit 4dcfc70

Please sign in to comment.