summaryrefslogtreecommitdiffhomepage
path: root/editor/inspect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/inspect.cpp')
-rw-r--r--editor/inspect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/inspect.cpp b/editor/inspect.cpp
index 131f15e1..7f69b56f 100644
--- a/editor/inspect.cpp
+++ b/editor/inspect.cpp
@@ -89,7 +89,7 @@ bool do_inspect_field(void* datum, const erased_accessor& accessor, field_repr r
ret = ImGui::InputText(label, const_cast<char*>(value.data()), value.size(), ImGuiInputTextFlags_ReadOnly);
else if constexpr(std::is_same_v<T, String>)
{
- ret = ImGui::InputText(label, value.begin(), value.size(), ImGuiInputTextFlags_CallbackResize, corrade_string_resize_callback, &value);
+ ret = ImGui::InputText(label, value.begin(), value.size()+1, ImGuiInputTextFlags_CallbackResize, corrade_string_resize_callback, &value);
if (auto max_len = accessor.get_max_length(datum); value.size() > max_len)
value = value.prefix(max_len);
}