From b9d2010b317f8af1cc05c5bc93086b3f768b8eed Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 11 Aug 2009 00:46:26 +0000 Subject: Fixed bug when pasting rectangular at end of line and viewing line ends. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3