summaryrefslogtreecommitdiff
path: root/src/insert_completer.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-10-05 23:30:20 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-10-05 23:30:20 +0100
commitc41a7eed097ef75a2bd10a60e06e3c1c1518599e (patch)
treeef30b8f3331000f461db898a2c001013312e625e /src/insert_completer.cc
parent31cc61b6fce0c0bb1a3cad35e9d73bd65f16f365 (diff)
Fix display of path insert completion for absolute paths
Diffstat (limited to 'src/insert_completer.cc')
-rw-r--r--src/insert_completer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/insert_completer.cc b/src/insert_completer.cc
index af1d2db1..14bb3b1e 100644
--- a/src/insert_completer.cc
+++ b/src/insert_completer.cc
@@ -180,7 +180,7 @@ InsertCompletion complete_filename(const Buffer& buffer, ByteCoord cursor_pos,
if (prefix.front() == '/')
{
for (auto& filename : Kakoune::complete_filename(prefix, Regex{}))
- candidates.push_back({std::move(filename), ""});
+ candidates.push_back({ filename, "", { filename, {} } });
}
else
{