diff options
author | cristo-rabani <cristo.rabani@gmail.com> | 2015-03-22 23:14:17 +0100 |
---|---|---|
committer | cristo-rabani <cristo.rabani@gmail.com> | 2015-03-22 23:14:17 +0100 |
commit | 382804e44c88c96ad50d50788f9f0bdfcad8dd40 (patch) | |
tree | 64f3bc2315831acf85dd47b54cf403139603f410 | |
parent | da1bf00a78406894d3840c8c0370aeb1c9900a53 (diff) | |
download | etherpad-lite-382804e44c88c96ad50d50788f9f0bdfcad8dd40.zip |
fix
-rw-r--r-- | src/static/js/AttributeManager.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/static/js/AttributeManager.js b/src/static/js/AttributeManager.js index fbfd6b30..5e782307 100644 --- a/src/static/js/AttributeManager.js +++ b/src/static/js/AttributeManager.js @@ -179,9 +179,9 @@ AttributeManager.prototype = _(AttributeManager.prototype).extend({ var list = _.chain(attribs).filter(function(a){return !!a[1];}).map(function(a){return a[0];}).value(); //if we have marker and any of attributes don't need to have marker. we need delete it if(hasMarker && !_.intersection(lineAttributes,list)){ - ChangesetUtils.buildRemoveRange(this.rep, builder, [lineNum, 0], [lineNum, 1]); + ChangesetUtils.buildRemoveRange(this.rep, builder, [lineNum, 1], [lineNum, 2]); }else{ - ChangesetUtils.buildKeepRange(this.rep, builder, [lineNum, 0], [lineNum, 1], attribs, this.rep.apool); + ChangesetUtils.buildKeepRange(this.rep, builder, [lineNum, 1], [lineNum, 2], attribs, this.rep.apool); } return this.applyChangeset(builder); |