aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2007-02-22 21:59:48 +0000
committernyamatongwe <unknown>2007-02-22 21:59:48 +0000
commit34d30ad243b4cea48edd3dac790791f8f9d15650 (patch)
tree5dfc612c76e6e6d2db515efaa6fa997e2e1e8c00 /src
parentf38220251afac345afbfdf67cc2081d53ac53efc (diff)
downloadscintilla-mirror-34d30ad243b4cea48edd3dac790791f8f9d15650.tar.gz
Account for addition of spaces when joining lines.
Fixes bug #1665791.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx1
1 files changed, 1 insertions, 0 deletions
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) != ' ';