summaryrefslogtreecommitdiff
path: root/src/buffer_utils.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer_utils.cc')
-rw-r--r--src/buffer_utils.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/buffer_utils.cc b/src/buffer_utils.cc
index 67bd97fe..8c0f3f80 100644
--- a/src/buffer_utils.cc
+++ b/src/buffer_utils.cc
@@ -219,10 +219,12 @@ void write_to_debug_buffer(StringView str)
}
}
-InplaceString<23> to_string(Buffer::HistoryId id)
+
+auto to_string(Buffer::HistoryId id)
{
+ using Result = decltype(to_string(size_t{}));
if (id == Buffer::HistoryId::Invalid)
- return InplaceString<23>{1, "-"};
+ return Result{1, "-"};
return to_string(static_cast<size_t>(id));
}