summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAleš Smodiš <aless@guru.si>2015-09-18 13:25:57 +0200
committerAleš Smodiš <aless@guru.si>2015-09-18 13:25:57 +0200
commit99bad1571ed306678d9b0416bf87f37f5f882058 (patch)
tree94b38f6ee3012f17859330f431bbab4eab74fb22 /js
parent0b7d370286ba2d0a7d35c1b9180425b6212b10f8 (diff)
Bugfix: join the array of removed character into a string, when the user makes a deletion, and it needs to be recorded in activity.
Diffstat (limited to 'js')
-rw-r--r--js/prolog.js2
-rw-r--r--js/python.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/js/prolog.js b/js/prolog.js
index 1c811ed..fad1dd4 100644
--- a/js/prolog.js
+++ b/js/prolog.js
@@ -160,7 +160,7 @@
pos = codeq.codePointCount(doc.getRange(firstCharacterPos, changeObj.from));
if (changeObj.removed) {
- activityHandler.queueTrace({'typ': 'rm', 'off': pos, 'len': codeq.codePointCount(changeObj.removed)});
+ activityHandler.queueTrace({'typ': 'rm', 'off': pos, 'len': codeq.codePointCount(changeObj.removed.join(''))});
}
if (changeObj.text) {
diff --git a/js/python.js b/js/python.js
index 9d051fe..1f2b5cb 100644
--- a/js/python.js
+++ b/js/python.js
@@ -108,7 +108,7 @@
pos = codeq.codePointCount(doc.getRange(firstCharacterPos, changeObj.from));
if (changeObj.removed) {
- activityHandler.queueTrace({'typ': 'rm', 'off': pos, 'len': codeq.codePointCount(changeObj.removed)});
+ activityHandler.queueTrace({'typ': 'rm', 'off': pos, 'len': codeq.codePointCount(changeObj.removed.join(''))});
}
if (changeObj.text) {