editor: don't refresh debug state if line hasn't changed

This commit is contained in:
Steven Hugg committed 2026-08-14 16:22:51 +02:00
1 parent 1de2f59c5f
commit f830bc2d2a
1 file changed
+1 -1
+1 -1
View File
@@ -608,7 +608,7 @@ export class SourceEditor implements ProjectView {
refreshDebugState(moveCursor: boolean) {
var line = this.getActiveLine();
if (!line && !this.currentDebugLine && !moveCursor) {
if (!moveCursor && (line === this.currentDebugLine || (!line && !this.currentDebugLine))) {
return;
}