summaryrefslogtreecommitdiffstats
path: root/scene/gui/code_edit.cpp
diff options
context:
space:
mode:
authorPaulb23 <p_batty@hotmail.co.uk>2021-07-09 13:40:05 +0100
committerPaulb23 <p_batty@hotmail.co.uk>2021-08-12 09:29:58 +0100
commitb799e5583acd40f62603305c8a6b2fb31dfca9e3 (patch)
treed1a5d209ec58f3d1b77ad581d5c406d8a46cf70e /scene/gui/code_edit.cpp
parentb70001131498d9487cc131d0ba27fff1abab99e8 (diff)
downloadredot-engine-b799e5583acd40f62603305c8a6b2fb31dfca9e3.tar.gz
Rename insert mode to overtype mode
Diffstat (limited to 'scene/gui/code_edit.cpp')
-rw-r--r--scene/gui/code_edit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/code_edit.cpp b/scene/gui/code_edit.cpp
index aabfde88ff..f9ba1f7f60 100644
--- a/scene/gui/code_edit.cpp
+++ b/scene/gui/code_edit.cpp
@@ -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();
}
}