aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2013-08-08 17:59:56 +1000
committerNeil <nyamatongwe@gmail.com>2013-08-08 17:59:56 +1000
commitfeff84c70259ab4faabbf066ba38337646dff9ef (patch)
tree13297a87356f3dcb5bc6ab415fff9cce9986d06c /src/PositionCache.h
parent3698dbe9ada24cea2b6a6c4c07428e9a457a6b51 (diff)
downloadscintilla-mirror-feff84c70259ab4faabbf066ba38337646dff9ef.tar.gz
Move functionality from Editor to ViewStyle.
controlCharSymbol setting moved along with calculated fields for tab width and control symbols. Use of TextSegment simplified and variables made const where possible.
Diffstat (limited to 'src/PositionCache.h')
-rw-r--r--src/PositionCache.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/PositionCache.h b/src/PositionCache.h
index a0b805743..6d14cf0a3 100644
--- a/src/PositionCache.h
+++ b/src/PositionCache.h
@@ -137,9 +137,12 @@ public:
struct TextSegment {
int start;
int length;
- Representation *repr;
- TextSegment(int start_=0, int length_=0, Representation *repr_=0) :
- start(start_), length(length_), repr(repr_) {
+ Representation *representation;
+ TextSegment(int start_=0, int length_=0, Representation *representation_=0) :
+ start(start_), length(length_), representation(representation_) {
+ }
+ int end() const {
+ return start + length;
}
};