diff options
author | nyamatongwe <devnull@localhost> | 2009-07-07 11:52:09 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-07-07 11:52:09 +0000 |
commit | 46c3c53a3c290f8757931a9f30bbf5f9577dd685 (patch) | |
tree | 58a8ee44a804dd0415f9389c06bf3289509c5aae /src/PositionCache.cxx | |
parent | 8fb47ea5ad855228fcb7ae91148e7fbbc783f8d4 (diff) | |
download | scintilla-mirror-46c3c53a3c290f8757931a9f30bbf5f9577dd685.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) { |