aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-01-19 20:30:09 -0500
committerHolden Rohrer <hr@hrhr.dev>2020-01-19 20:30:09 -0500
commit920a59aa22f0a2dcb3cc9cd00a54e977904cdcf4 (patch)
tree71eb08d6ea35ec4b00aec5b68dba6478eac7fe92
parent3a930dfdb199289a77d98246345f1a9189de62a7 (diff)
socket returns a more useful number on .write
-rw-r--r--socket.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket.js b/socket.js
index c165597..d5243a2 100644
--- a/socket.js
+++ b/socket.js
@@ -80,7 +80,7 @@ class Socket extends retryws {
"edits": write,
"kind": "write"
}));
- return writect-chars.length; // First label within write for cross-referencing with confirmation
+ return writect-1; // Last label within write for cross-referencing with confirmation
}
this.cursor = function(coords){ //coords is just one pair of char coords; I think the api could handle more, but it's unnecessary for now.