From 34d30ad243b4cea48edd3dac790791f8f9d15650 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 22 Feb 2007 21:59:48 +0000 Subject: Account for addition of spaces when joining lines. Fixes bug #1665791. --- src/Editor.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 3396b4245..bf274ee60 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1627,6 +1627,7 @@ void Editor::LinesJoin() { if (prevNonWS) { // Ensure at least one space separating previous lines pdoc->InsertChar(pos, ' '); + targetEnd++; } } else { prevNonWS = pdoc->CharAt(pos) != ' '; -- cgit v1.2.3