aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-06-23 17:03:49 +1000
committerNeil <nyamatongwe@gmail.com>2014-06-23 17:03:49 +1000
commit4bbf7d16f03b48ddd4d2184bc21cb98889b64899 (patch)
tree7e1da5c1a9de988de16dff4e5f38ececb707c898 /src/Editor.h
parent3b5496d80c0fb79ebad20d7253b944a072d5cd7f (diff)
downloadscintilla-mirror-4bbf7d16f03b48ddd4d2184bc21cb98889b64899.tar.gz
Use Range type for hotspot to simplify manipulation.
Diffstat (limited to 'src/Editor.h')
-rw-r--r--src/Editor.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Editor.h b/src/Editor.h
index 4826a1852..6c7ae6c59 100644
--- a/src/Editor.h
+++ b/src/Editor.h
@@ -309,8 +309,7 @@ protected: // ScintillaBase subclass needs access to much of Editor
ContractionState cs;
// Hotspot support
- int hsStart;
- int hsEnd;
+ Range hotspot;
// Wrapping support
int wrapWidth;
@@ -623,7 +622,7 @@ protected: // ScintillaBase subclass needs access to much of Editor
bool PositionIsHotspot(int position) const;
bool PointIsHotspot(Point pt);
void SetHotSpotRange(Point *pt);
- void GetHotSpotRange(int &hsStart, int &hsEnd) const;
+ Range GetHotSpotRange() const;
int CodePage() const;
virtual bool ValidCodePage(int /* codePage */) const { return true; }