From 6d3fe30bf67b01e3a49fac634e888ea19af90d8f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 25 Mar 2018 19:03:54 +1100 Subject: Allow explicit filename completion with empty prefix --- src/insert_completer.cc | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/insert_completer.cc') diff --git a/src/insert_completer.cc b/src/insert_completer.cc index fbc463f4..f5e65774 100644 --- a/src/insert_completer.cc +++ b/src/insert_completer.cc @@ -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 {}; -- cgit v1.2.3