summaryrefslogtreecommitdiff
path: root/src/insert_completer.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-03-25 19:03:54 +1100
committerMaxime Coste <mawww@kakoune.org>2018-03-25 19:03:54 +1100
commit6d3fe30bf67b01e3a49fac634e888ea19af90d8f (patch)
treeab6ddfeaca7792dcd5e2dcc25b9b449e91d7b118 /src/insert_completer.cc
parent6f48fb0be38fbf5558856ffc104438f54d2e4762 (diff)
Allow explicit filename completion with empty prefix
Diffstat (limited to 'src/insert_completer.cc')
-rw-r--r--src/insert_completer.cc3
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 {};