diff --git a/src/buffer_utils.cc b/src/buffer_utils.cc index e9f159d6b..a48a9ce9c 100644 --- a/src/buffer_utils.cc +++ b/src/buffer_utils.cc @@ -147,7 +147,8 @@ decltype(auto) parse_file(StringView filename, Func&& func) Buffer* open_file_buffer(StringView filename, Buffer::Flags flags) { return parse_file(filename, [&](BufferLines&& lines, ByteOrderMark bom, EolFormat eolformat, FsStatus fs_status) { - return BufferManager::instance().create_buffer(filename.str(), flags, std::move(lines), bom, eolformat, fs_status); + return BufferManager::instance().create_buffer(filename.str(), Buffer::Flags::File | flags, + std::move(lines), bom, eolformat, fs_status); }); }