Skip to content

Commit 2defa7c

Browse files
authored
Merge pull request #14 from makermelissa/main
Bug fixes for c6
2 parents f8e9b6f + 9595810 commit 2defa7c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

repl.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,10 @@ class InputBuffer {
370370
}
371371
return buffer.split(this.lineEnding);
372372
}
373+
374+
getPointerPosition() {
375+
return this._pointer;
376+
}
373377
}
374378

375379
export class REPL {
@@ -537,7 +541,7 @@ export class REPL {
537541
if (this._rawByteCount >= 2) {
538542
while (bytes.length > 0) {
539543
if (this._checkpointCount == 0) {
540-
if (bytes.slice(0, 2).match("OK") || bytes.slice(0, 3).match(">OK")) {
544+
if (bytes.slice(0, 2).match("OK")) {
541545
this._checkpointCount++;
542546
bytes = bytes.slice(2);
543547
} else if (bytes.slice(0, 2).match("ra")) {

0 commit comments

Comments
 (0)