Sorry for that additional noise. Got carried away. Here are the two cleaned patches: --- scintilla/win32/ScintillaWin.cxx +++ scintilla/win32/ScintillaWin.cxx @@ -3074,36 +3074,44 @@ bool SupportedFormat(const FORMATETC *pFE) noexcept { } void ScintillaWin::Paste() { - Clipboard clipboard(MainHWND()); - if (!clipboard) { - return; - } - UndoGroup ug(pdoc); - const bool isLine = SelectionEmpty() && - (::IsClipboardFormatAvailable(cfLineSelect) || ::IsClipboardFormatAvailable(cfVSLineTag)); - ClearSelection(multiPasteMode...
I tried Neil's suggested approach: add more than one space at a time, but conservatively. The patch only changes end-of-line padding in rectangular paste. If the target x position is beyond the line end, it estimates the missing spaces from the current style's space width, inserts slightly fewer spaces than estimated, measures again, and then lets the existing one-space loop finish exactly. This should avoid overshoot because the final alignment still uses the existing XFromPosition loop. The maximum...
I tried Neil's suggested approach: add more than one space at a time, but conservatively. The patch only changes end-of-line padding in rectangular paste. If the target x position is beyond the line end, it estimates the missing spaces from the current style's space width, inserts slightly fewer spaces than estimated, measures again, and then lets the existing one-space loop finish exactly. This should avoid overshoot because the final alignment still uses the existing XFromPosition loop. The maximum...
I tried Neil's suggested approach: add more than one space at a time, but conservatively. The patch only changes end-of-line padding in rectangular paste. If the target x position is beyond the line end, it estimates the missing spaces from the current style's space width, inserts slightly fewer spaces than estimated, measures again, and then lets the existing one-space loop finish exactly. This should avoid overshoot because the final alignment still uses the existing XFromPosition loop. The maximum...
Blocked clipboard while pasting (Windows)
I tried Neil's suggested approach: add more than one space at a time, but conservatively. The patch only changes end-of-line padding in rectangular paste. If the target x position is beyond the line end, it estimates the missing spaces from the current style's space width, inserts slightly fewer spaces than estimated, measures again, and then lets the existing one-space loop finish exactly. This should avoid overshoot because the final alignment still uses the existing XFromPosition loop. The maximum...
Slow performance when pasting block selection