diff options
| author | Maxime Coste <mawww@kakoune.org> | 2018-03-25 19:03:54 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2018-03-25 19:03:54 +1100 |
| commit | 6d3fe30bf67b01e3a49fac634e888ea19af90d8f (patch) | |
| tree | ab6ddfeaca7792dcd5e2dcc25b9b449e91d7b118 /src | |
| parent | 6f48fb0be38fbf5558856ffc104438f54d2e4762 (diff) | |
Allow explicit filename completion with empty prefix
Diffstat (limited to 'src')
| -rw-r--r-- | src/insert_completer.cc | 3 |
1 files changed, 0 insertions, 3 deletions
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 {}; |
