Don't paste plain text at column 0 unless selection is active

This commit is contained in:
G.K.MacGregor
2024-07-02 16:33:49 +01:00
parent 23a0d3c47e
commit 54bdf1783a

View File

@@ -497,10 +497,8 @@ PasteCommand::PasteCommand(TeletextDocument *teletextDocument, int pageCharSet,
if (!m_selectionActive) { if (!m_selectionActive) {
// If selection is NOT active, use the full width of the page to paste. // If selection is NOT active, use the full width of the page to paste.
// The second and subsequent lines will start at column 1, unless the // The second and subsequent lines will start at column 1
// cursor is explicitly on column 0. m_pasteLeftColumn = 1;
if (m_pasteLeftColumn != 0)
m_pasteLeftColumn = 1;
// Check if first word in the first line will fit from the cursor position // Check if first word in the first line will fit from the cursor position
bool firstWordFits = true; bool firstWordFits = true;