aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2007-02-22 21:59:48 +0000
committernyamatongwe <devnull@localhost>2007-02-22 21:59:48 +0000
commit0d6caac39a5e0dd9306d6ef91f1b43869b1affdf (patch)
tree5dfc612c76e6e6d2db515efaa6fa997e2e1e8c00 /src
parentf4fb7ec9f9e59ebd05b32f6db4f9d18734db7e06 (diff)
downloadscintilla-mirror-0d6caac39a5e0dd9306d6ef91f1b43869b1affdf.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) != ' ';