From 920a59aa22f0a2dcb3cc9cd00a54e977904cdcf4 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Sun, 19 Jan 2020 20:30:09 -0500 Subject: socket returns a more useful number on .write --- socket.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit