Fix display of path insert completion for absolute paths

This commit is contained in:
Maxime Coste 2015-10-05 23:30:20 +01:00
parent 31cc61b6fc
commit c41a7eed09

View File

@ -180,7 +180,7 @@ InsertCompletion complete_filename(const Buffer& buffer, ByteCoord cursor_pos,
if (prefix.front() == '/')
{
for (auto& filename : Kakoune::complete_filename(prefix, Regex{}))
candidates.push_back({std::move(filename), ""});
candidates.push_back({ filename, "", { filename, {} } });
}
else
{