We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3476de2 commit cdaaa55Copy full SHA for cdaaa55
arduino-ide-extension/src/browser/serial/monitor/serial-monitor-send-input.tsx
@@ -74,17 +74,15 @@ class HistoryList {
74
if (this.index !== this.end) {
75
this.traverse = true;
76
this.index = (++this.index < this.size) ? this.index : 0;
77
- return this.ring[this.index];
+ if(this.index === this.end)
78
+ this.traverse = false;
79
}
80
else {
81
if (!this.traverse) {
82
return '';
83
- else {
84
- this.traverse = false;
85
86
- }
87
+ return this.ring[this.index];
88
89
90
0 commit comments