diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-01-15 19:25:41 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-01-15 19:26:38 +0000 |
| commit | bb915f0bc5bcb40f5de20f47cb2934597474a5da (patch) | |
| tree | 4aa1849a4944849be2277ce8329bd7fb42cda962 | |
| parent | 8eef019cf8c98bf6e7580f3aa321443dd5d7138f (diff) | |
Fix filename completion
| -rw-r--r-- | src/main.cc | 2 | ||||
| -rw-r--r-- | src/normal.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cc b/src/main.cc index 0a7a9cc6..bcef9c87 100644 --- a/src/main.cc +++ b/src/main.cc @@ -213,7 +213,7 @@ void register_options() Regex{}); reg.declare_option("filetype", "buffer filetype", ""_str); reg.declare_option("path", "path to consider when trying to find a file", - Vector<String>({ "./", "/usr/include" })); + Vector<String, MemoryDomain::Options>({ "./", "/usr/include" })); reg.declare_option("completers", "insert mode completers to execute.", InsertCompleterDescList({ InsertCompleterDesc{ InsertCompleterDesc::Filename }, diff --git a/src/normal.cc b/src/normal.cc index 567badfb..85f47c5c 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -211,7 +211,7 @@ void goto_commands(Context& context, NormalParams params) if (contains(filename, c)) return; - auto paths = context.options()["path"].get<Vector<String>>(); + auto paths = context.options()["path"].get<Vector<String, MemoryDomain::Options>>(); const String& buffer_name = buffer.name(); auto it = find(reversed(buffer_name), '/'); if (it != buffer_name.rend()) |
