Allow explicit filename completion with empty prefix

This commit is contained in:
Maxime Coste 2018-03-25 19:03:54 +11:00
parent 6f48fb0be3
commit 6d3fe30bf6

View File

@ -221,9 +221,6 @@ InsertCompletion complete_filename(const SelectionList& sels,
if (begin != buffer.begin() and *begin == '/' and *(begin-1) == '~')
--begin;
if (begin == pos)
return {};
StringView prefix = buffer.substr(begin.coord(), pos.coord());
if (require_slash and not contains(prefix, '/'))
return {};