diff options
author | Aleš Smodiš <aless@guru.si> | 2015-09-18 15:14:23 +0200 |
---|---|---|
committer | Aleš Smodiš <aless@guru.si> | 2015-09-18 15:14:23 +0200 |
commit | bcfa340a112009500a4d2b2c778187c104793a1a (patch) | |
tree | 9bb4375be75930fef07ba64bb487609fd6768456 | |
parent | 7638e350abbe3bc573272f1c44e8daeff1647424 (diff) |
Reapply bugfix: join the array of removed character into a string, when the user makes a deletion, and it needs to be recorded in activity.
-rw-r--r-- | js/codeq/prolog.js | 2 | ||||
-rw-r--r-- | js/codeq/python.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/js/codeq/prolog.js b/js/codeq/prolog.js index e411895..b12a5d2 100644 --- a/js/codeq/prolog.js +++ b/js/codeq/prolog.js @@ -372,7 +372,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': 'r', 'off': pos, 'len': codeq.codePointCount(changeObj.removed.join(''))}); } if (changeObj.text) { diff --git a/js/codeq/python.js b/js/codeq/python.js index 868055c..0075a72 100644 --- a/js/codeq/python.js +++ b/js/codeq/python.js @@ -323,7 +323,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) { |