aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2006-01-02 23:25:08 +0000
committernyamatongwe <devnull@localhost>2006-01-02 23:25:08 +0000
commit78a39204282e86ea43b165801a732931473217ea (patch)
tree37a6da56c6baa7b62a663312ae47214a9a9fcfc2 /src
parent7c3f62857b59bc72474d340608ee5773e45a055f (diff)
downloadscintilla-mirror-78a39204282e86ea43b165801a732931473217ea.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);
+ }
}
}