Merge pull request #18308 from ericmccarthy7/develop

Fix clone down newline bug
This commit is contained in:
Max Hilbrunner 2018-05-07 14:49:23 +02:00 committed by GitHub
commit c587cac304
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1007,6 +1007,10 @@ void ScriptTextEditor::_edit_option(int p_op) {
}
int next_line = to_line + 1;
if (to_line >= tx->get_line_count() - 1) {
tx->set_line(to_line, tx->get_line(to_line) + "\n");
}
tx->begin_complex_operation();
for (int i = from_line; i <= to_line; i++) {