diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index e79d43e6f..1ea5d17e4 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1622,7 +1622,15 @@ void Editor::PasteRectangular(int pos, const char *ptr, int len) {  				if (pdoc->eolMode != SC_EOL_CR)  					pdoc->InsertChar(pdoc->Length(), '\n');  			} +			// Pad the end of lines with spaces if required  			currentPos = PositionFromLineX(line, xInsert); +			if ((XFromPosition(currentPos) < xInsert) && (i+1 < len)) { +				for (int i=0; i < xInsert - XFromPosition(currentPos); i++) { +					pdoc->InsertChar(currentPos, ' '); +					currentPos++; +				} +				insertPos = currentPos; +			}  			prevCr = ptr[i] == '\r';  		} else {  			pdoc->InsertString(currentPos, ptr + i, 1); | 
