Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

make cut_copy_line static, to fix pasting a line into a different TextEdit

Benjamin Saez9344c5b3ae00
diff --git a/scene/gui/text_edit.h b/scene/gui/text_edit.h
index 35896ded6ea..8a63e70cac3 100644
--- a/scene/gui/text_edit.h
+++ b/scene/gui/text_edit.h
@@ -365,7 +365,7 @@ private:
bool empty_selection_clipboard_enabled = true;
// Overridable actions.
- String cut_copy_line = "";
+ static inline String cut_copy_line = "";
// Context menu.
PopupMenu *menu = nullptr;