Skip to content

Commit

Permalink
ER breaks line if not in trace mode
Browse files Browse the repository at this point in the history
  • Loading branch information
e9gille committed Jun 18, 2022
1 parent 661fd43 commit 78a82a3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/ed.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,9 +557,13 @@
});
me.executeEdits('D', edits, o);
},
ER() {
D.send('RunCurrentLine', { win: this.id });
D.ide.getStats();
ER(me) {
if (this.tc) {
D.send('RunCurrentLine', { win: this.id });
D.ide.getStats();
} else {
me.trigger('editor', 'type', { text: '\n' });
}
},
BH() { D.send('ContinueTrace', { win: this.id }); },
RM() { D.send('Continue', { win: this.id }); },
Expand Down

0 comments on commit 78a82a3

Please sign in to comment.