diff options
author | nyamatongwe <unknown> | 2009-08-11 23:57:40 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-08-11 23:57:40 +0000 |
commit | befd8930e3dda32adaa62fbe84f90c99f3d37cca (patch) | |
tree | 85f8b7c039b3cc69d2f42e9ffebefa351f4c9a11 | |
parent | dfb2e86c342ead572a706b1b562ae1b100da23fb (diff) | |
download | scintilla-mirror-befd8930e3dda32adaa62fbe84f90c99f3d37cca.tar.gz |
Don't add extra empty lines with space indentation when performing a
rectangular paste at the end of the document.
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 70f144ff7..41f274529 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3838,6 +3838,8 @@ void Editor::PasteRectangular(SelectionPosition pos, const char *ptr, int len) { InsertSpace(sel.RangeMain().caret.Position(), sel.RangeMain().caret.VirtualSpace())); int xInsert = XFromPosition(sel.RangeMain().caret); bool prevCr = false; + while ((len > 0) && IsEOLChar(ptr[len-1])) + len--; for (int i = 0; i < len; i++) { if (IsEOLChar(ptr[i])) { if ((ptr[i] == '\r') || (!prevCr)) |