aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Decoration.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2007-04-07 00:57:03 +0000
committernyamatongwe <devnull@localhost>2007-04-07 00:57:03 +0000
commit8ad28ca6790189274f7cb8066c125140b995e95a (patch)
tree855af185b33b67caf44e49c655059ff76782ef35 /src/Decoration.cxx
parent6912617ec0d5909de6ddfe1322836cbffa7392ad (diff)
downloadscintilla-mirror-8ad28ca6790189274f7cb8066c125140b995e95a.tar.gz
More decoration code, with modifications reported from document to views
although this isn't optimal. Some checking for null changes. Messages documented. Methods for changing indicators in Accessor so can be used by lexers.
Diffstat (limited to 'src/Decoration.cxx')
-rw-r--r--src/Decoration.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Decoration.cxx b/src/Decoration.cxx
index f1c9c5ae3..3d23833cc 100644
--- a/src/Decoration.cxx
+++ b/src/Decoration.cxx
@@ -104,20 +104,21 @@ void DecorationList::SetCurrentIndicator(int indicator) {
}
void DecorationList::SetCurrentValue(int value) {
- currentValue = value;
+ currentValue = value ? value : 1;
}
-void DecorationList::FillRange(int position, int value, int fillLength) {
+bool DecorationList::FillRange(int position, int value, int fillLength) {
if (!current) {
current = DecorationFromIndicator(currentIndicator);
if (!current) {
current = Create(currentIndicator, lengthDocument);
}
}
- current->rs.FillRange(position, value, fillLength);
+ bool changed = current->rs.FillRange(position, value, fillLength);
if (current->Empty()) {
Delete(currentIndicator);
}
+ return changed;
}
void DecorationList::InsertSpace(int position, int insertLength) {