mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-20 06:29:53 +01:00
Minor coding style improvement. Does the same as before
This commit is contained in:
parent
2ccc70daf6
commit
ff9e407092
1 changed files with 2 additions and 5 deletions
|
@ -2272,11 +2272,8 @@ function Ace2Inner(){
|
||||||
|
|
||||||
function performDocumentApplyAttributesToCharRange(start, end, attribs)
|
function performDocumentApplyAttributesToCharRange(start, end, attribs)
|
||||||
{
|
{
|
||||||
if (end >= rep.alltext.length)
|
end = Math.min(end, rep.alltext.length - 1);
|
||||||
{
|
documentAttributeManager.setAttributesOnRange(lineAndColumnFromChar(start), lineAndColumnFromChar(end), attribs);
|
||||||
end = rep.alltext.length - 1;
|
|
||||||
}
|
|
||||||
performDocumentApplyAttributesToRange(lineAndColumnFromChar(start), lineAndColumnFromChar(end), attribs);
|
|
||||||
}
|
}
|
||||||
editorInfo.ace_performDocumentApplyAttributesToCharRange = performDocumentApplyAttributesToCharRange;
|
editorInfo.ace_performDocumentApplyAttributesToCharRange = performDocumentApplyAttributesToCharRange;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue