1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Rename insert mode to overtype mode

This commit is contained in:
Paulb23
2021-07-09 13:40:05 +01:00
parent b700011314
commit b799e5583a
4 changed files with 38 additions and 22 deletions

View File

@@ -555,7 +555,7 @@ void CodeEdit::_handle_unicode_input(const uint32_t p_unicode) {
}
/* Remove the old character if in insert mode and no selection. */
if (is_insert_mode() && !had_selection) {
if (is_overtype_mode_enabled() && !had_selection) {
begin_complex_operation();
/* Make sure we don't try and remove empty space. */
@@ -594,7 +594,7 @@ void CodeEdit::_handle_unicode_input(const uint32_t p_unicode) {
insert_text_at_caret(chr);
}
if ((is_insert_mode() && !had_selection) || (had_selection)) {
if ((is_overtype_mode_enabled() && !had_selection) || (had_selection)) {
end_complex_operation();
}
}