1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-30 23:37:17 +03:00

Fix File Buffer flag not being correctly applied

This commit is contained in:
Maxime Coste 2021-05-28 20:31:28 +10:00
parent fb9dbfed2a
commit 049b9a28d1

View File

@ -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);
});
}