diff options
author | nyamatongwe <unknown> | 2006-01-02 23:25:08 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2006-01-02 23:25:08 +0000 |
commit | 17efc9b092f0b05b2c6b1b1a1ba833c2d53655ed (patch) | |
tree | 37a6da56c6baa7b62a663312ae47214a9a9fcfc2 /src | |
parent | eed631b69225c5282e4a35cf788d4f5b9eef11ae (diff) | |
download | scintilla-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.cxx | 3 |
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); + } } } |