GTextEditor: Disable auto-indentation while pasting

Fixes #1121.
This commit is contained in:
Andreas Kling 2020-01-23 21:07:37 +01:00
parent 14b83ee12f
commit b88be25214

View file

@ -1152,6 +1152,8 @@ void GTextEditor::paste()
return;
auto paste_text = GClipboard::the().data();
printf("Paste: \"%s\"\n", paste_text.characters());
TemporaryChange change(m_automatic_indentation_enabled, false);
insert_at_cursor_or_replace_selection(paste_text);
}