aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2003-03-20 11:22:14 +0000
committernyamatongwe <devnull@localhost>2003-03-20 11:22:14 +0000
commitd4849b34e7c561921671603232668ca0c4b41b69 (patch)
tree269e3f31c3495acbd880f76129f6f16b0a51da96 /src/Document.cxx
parent186fb2391e583d318a137842b2ccaae51d69365e (diff)
downloadscintilla-mirror-d4849b34e7c561921671603232668ca0c4b41b69.tar.gz
Patch from Simon Steele to implement the hotspot style and associated
notifications.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r--src/Document.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index a7dcccb0c..635b380f9 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -1316,3 +1316,16 @@ int Document::WordPartRight(int pos) {
}
return pos;
}
+
+int Document::ExtendStyleRange(int pos, int delta) {
+ int sStart = cb.StyleAt(pos);
+ if (delta < 0) {
+ while (pos > 0 && (cb.StyleAt(pos) == sStart))
+ pos--;
+ pos++;
+ } else {
+ while (pos < (Length()) && (cb.StyleAt(pos) == sStart))
+ pos++;
+ }
+ return pos;
+} \ No newline at end of file