aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2007-08-16 13:13:35 +0000
committernyamatongwe <unknown>2007-08-16 13:13:35 +0000
commitc19be2c1b234ac62720f3db7a4e483c271867d38 (patch)
tree30913d82bd9e13a404602661029660ceebde440a /src/PositionCache.cxx
parent446e3fd68f391a4087aa2bc85fa2e6696ed42eaf (diff)
downloadscintilla-mirror-c19be2c1b234ac62720f3db7a4e483c271867d38.tar.gz
Make selection of first or second character on line work with a selection
foreground set.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r--src/PositionCache.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx
index 5bdafc27e..1763b6530 100644
--- a/src/PositionCache.cxx
+++ b/src/PositionCache.cxx
@@ -126,7 +126,7 @@ int LineLayout::LineLastVisible(int line) const {
}
bool LineLayout::InLine(int offset, int line) const {
- return ((offset >= LineStart(line)) && (offset < LineStart(line + 1)) ||
+ return ((offset >= LineStart(line)) && (offset < LineStart(line + 1)) ||
((offset == numCharsInLine) && (line == (lines-1))));
}
@@ -345,7 +345,7 @@ void LineLayoutCache::Dispose(LineLayout *ll) {
}
void BreakFinder::Insert(int val) {
- if (val > nextBreak) {
+ if (val >= nextBreak) {
for (unsigned int j = 0; j<saeLen; j++) {
if (val == selAndEdge[j]) {
return;