diff options
author | nyamatongwe <unknown> | 2009-08-11 00:46:26 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-08-11 00:46:26 +0000 |
commit | b9d2010b317f8af1cc05c5bc93086b3f768b8eed (patch) | |
tree | a4065454d0088643de0d18f8a12ca9ca5a909d3d | |
parent | 0904508e98238a1d608f7dbd27cd87aa7e475774 (diff) | |
download | scintilla-mirror-b9d2010b317f8af1cc05c5bc93086b3f768b8eed.tar.gz |
Fixed bug when pasting rectangular at end of line and viewing line ends.
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 2bbba5aeb..2407d2b30 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -521,7 +521,7 @@ int Editor::PositionFromLineX(int lineDoc, int x) { if (surface && ll) { unsigned int posLineStart = pdoc->LineStart(lineDoc); LayoutLine(lineDoc, surface, vs, ll, wrapWidth); - retVal = ll->numCharsInLine + posLineStart; + retVal = ll->numCharsBeforeEOL + posLineStart; int subLine = 0; int lineStart = ll->LineStart(subLine); int lineEnd = ll->LineLastVisible(subLine); |