diff options
author | nyamatongwe <unknown> | 2009-07-07 11:52:09 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-07-07 11:52:09 +0000 |
commit | a8253c4498fe0ca70458d03b86315b728988d08e (patch) | |
tree | 58a8ee44a804dd0415f9389c06bf3289509c5aae /src/PositionCache.cxx | |
parent | 599253475568259ee4ad8bdc5399cf67357c663d (diff) | |
download | scintilla-mirror-a8253c4498fe0ca70458d03b86315b728988d08e.tar.gz |
Using the last style on a line to determine the width of a virtual space
rather than use the default style. This adapts better for comments which
use a different font.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r-- | src/PositionCache.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index 258a14860..b727ec465 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -197,6 +197,10 @@ int LineLayout::FindBefore(int x, int lower, int upper) const { return lower; } +int LineLayout::EndLineStyle() const { + return styles[numCharsBeforeEOL > 0 ? numCharsBeforeEOL-1 : 0]; +} + LineLayoutCache::LineLayoutCache() : level(0), length(0), size(0), cache(0), allInvalidated(false), styleClock(-1), useCount(0) { |