diff options
Diffstat (limited to 'src/string_utils.hh')
| -rw-r--r-- | src/string_utils.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/string_utils.hh b/src/string_utils.hh index a11aaa91..1c2d4076 100644 --- a/src/string_utils.hh +++ b/src/string_utils.hh @@ -95,9 +95,9 @@ struct WrapView inline auto wrap_at(ColumnCount max_width) { - return make_view_factory([=](StringView text) { + return ViewFactory{[=](StringView text) { return WrapView{text, max_width}; - }); + }}; } int str_to_int(StringView str); // throws on error |
