diff options
Diffstat (limited to 'src/CellBuffer.cxx')
| -rw-r--r-- | src/CellBuffer.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index 3d4050633..1eac3f9c2 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -510,15 +510,15 @@ ChangedRange CellBuffer::SetStyles(Sci::Position position, const char *styles, S return cr; } -ChangedRange CellBuffer::SetStyleFor(Sci::Position position, Sci::Position lengthStyle, char styleValue) noexcept { - if (!hasStyles || (position < 0) || (lengthStyle <= 0)) { +ChangedRange CellBuffer::SetStyleFor(Sci::Position position, Sci::Position length, char value) noexcept { + if (!hasStyles || (position < 0) || (length <= 0)) { return {}; } - const Lengths lengths = SplitUpdate(style, position, lengthStyle); - ChangedRange cr = SetBytes(&style[position], styleValue, lengths.length1, position); + const Lengths lengths = SplitUpdate(style, position, length); + ChangedRange cr = SetBytes(&style[position], value, lengths.length1, position); if (lengths.length2) { - const ChangedRange cr2 = SetBytes(&style[position + lengths.length1], styleValue, + const ChangedRange cr2 = SetBytes(&style[position + lengths.length1], value, lengths.length2, position + lengths.length1); cr.Merge(cr2); } |
