Skip to content

Commit f830bc2

Browse files
committed
editor: don't refresh debug state if line hasn't changed
1 parent 1de2f59 commit f830bc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ide/views/editors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ export class SourceEditor implements ProjectView {
608608

609609
refreshDebugState(moveCursor: boolean) {
610610
var line = this.getActiveLine();
611-
if (!line && !this.currentDebugLine && !moveCursor) {
611+
if (!moveCursor && (line === this.currentDebugLine || (!line && !this.currentDebugLine))) {
612612
return;
613613
}
614614

0 commit comments

Comments
 (0)