diff options
author | Neil <nyamatongwe@gmail.com> | 2014-06-23 17:03:49 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-06-23 17:03:49 +1000 |
commit | 4bbf7d16f03b48ddd4d2184bc21cb98889b64899 (patch) | |
tree | 7e1da5c1a9de988de16dff4e5f38ececb707c898 /src/Editor.h | |
parent | 3b5496d80c0fb79ebad20d7253b944a072d5cd7f (diff) | |
download | scintilla-mirror-4bbf7d16f03b48ddd4d2184bc21cb98889b64899.tar.gz |
Use Range type for hotspot to simplify manipulation.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 5 |
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; } |