diff options
author | Paulo Gomes <tuga3d@gmail.com> | 2017-09-06 02:02:51 +0100 |
---|---|---|
committer | Paulo Gomes <tuga3d@gmail.com> | 2017-09-06 19:23:09 +0100 |
commit | 9b72f0804268b99b341c0c700cdac5617162216d (patch) | |
tree | 4c2624cd01ea038ad99302640bea1a3498012854 /scene/gui/text_edit.cpp | |
parent | 0b8fa1e01068af9924742ade2625e021ccd2c5a8 (diff) | |
download | redot-engine-9b72f0804268b99b341c0c700cdac5617162216d.tar.gz |
second take at autocomplete logic, using a TextOperation check.
Diffstat (limited to 'scene/gui/text_edit.cpp')
-rw-r--r-- | scene/gui/text_edit.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 1738e303aa..4f930c5139 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -4255,6 +4255,10 @@ bool TextEdit::is_insert_mode() const { return insert_mode; } +bool TextEdit::is_insert_text_operation() { + return (current_op.type == TextOperation::TYPE_INSERT); +} + uint32_t TextEdit::get_version() const { return current_op.version; } |