aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2006-01-02 23:25:08 +0000
committernyamatongwe <unknown>2006-01-02 23:25:08 +0000
commit17efc9b092f0b05b2c6b1b1a1ba833c2d53655ed (patch)
tree37a6da56c6baa7b62a663312ae47214a9a9fcfc2 /src
parenteed631b69225c5282e4a35cf788d4f5b9eef11ae (diff)
downloadscintilla-mirror-17efc9b092f0b05b2c6b1b1a1ba833c2d53655ed.tar.gz
PositionFromPointClose returns position after last character on line when
given position in the last half of the last character on line.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 4ec9be190..dfeb1a62d 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -810,6 +810,9 @@ int Editor::PositionFromLocationClose(Point pt) {
return pdoc->MovePositionOutsideChar(i + posLineStart, 1);
}
}
+ if (pt.x < (ll->positions[lineEnd] - subLineStart)) {
+ return pdoc->MovePositionOutsideChar(lineEnd + posLineStart, 1);
+ }
}
}