diff --git a/src/builtin_type.cpp b/src/builtin_type.cpp index a5a30b2e7..57f930f7b 100644 --- a/src/builtin_type.cpp +++ b/src/builtin_type.cpp @@ -147,7 +147,7 @@ maybe_t builtin_type(parser_t &parser, io_streams_t &streams, wchar_t **arg int line_number = function_get_definition_lineno(name); wcstring comment; append_format(comment, L"# Defined in %ls @ line %d\n", path, line_number); - def = comment + def; + def = comment.append(def); } if (!streams.out_is_redirected && isatty(STDOUT_FILENO)) { std::vector colors;