Allow explicit filename completion with empty prefix
This commit is contained in:
parent
6f48fb0be3
commit
6d3fe30bf6
|
@ -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 {};
|
||||
|
|
Loading…
Reference in New Issue
Block a user