Merge pull request #10237 from Paulb23/convert_indent_save_issue_9841
Fixed undo when converting indent with no changes, issue 9841
This commit is contained in:
commit
bed66afee4
1 changed files with 6 additions and 2 deletions
|
@ -355,8 +355,10 @@ void ScriptTextEditor::convert_indent_to_spaces() {
|
|||
}
|
||||
j++;
|
||||
}
|
||||
if (changed_indentation) {
|
||||
tx->set_line(i, line);
|
||||
}
|
||||
}
|
||||
if (changed_indentation) {
|
||||
tx->cursor_set_column(cursor_column);
|
||||
tx->end_complex_operation();
|
||||
|
@ -409,8 +411,10 @@ void ScriptTextEditor::convert_indent_to_tabs() {
|
|||
}
|
||||
j++;
|
||||
}
|
||||
if (changed_indentation) {
|
||||
tx->set_line(i, line);
|
||||
}
|
||||
}
|
||||
if (changed_indentation) {
|
||||
tx->cursor_set_column(cursor_column);
|
||||
tx->end_complex_operation();
|
||||
|
|
Loading…
Reference in a new issue