diff options
author | nyamatongwe <unknown> | 2010-03-17 23:27:46 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-03-17 23:27:46 +0000 |
commit | 13c82ea2ab89755ee9c60ab6975d587242871e07 (patch) | |
tree | 7ac38caae57a9c756b971bc0d32bdb284b564f33 | |
parent | 68c6cc8b170191823e7b9f0ec942dbd5618327e1 (diff) | |
download | scintilla-mirror-13c82ea2ab89755ee9c60ab6975d587242871e07.tar.gz |
Fixed bug where extra NUL was inserted when pasting a rectangular
selection.
-rw-r--r-- | gtk/ScintillaGTK.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 3ef3c45ed..88e4d8598 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -1491,6 +1491,8 @@ void ScintillaGTK::GetGtkSelectionText(GtkSelectionData *selectionData, Selectio isRectangular = ::IsClipboardFormatAvailable(cfColumnSelect) != 0; #else isRectangular = ((len > 2) && (data[len - 1] == 0 && data[len - 2] == '\n')); + if (isRectangular) + len--; // Forget the extra '\0' #endif char *dest; |