summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-11-11 13:47:51 +0000
committerMaxime Coste <frrrwww@gmail.com>2014-11-11 13:47:51 +0000
commit414cfabb8cd01ff0972495731de865f68f2fb5b3 (patch)
treeae3c3bb211e64b20c7092032ade34cdfe045e8d0 /src
parent2062405f277027d94c941d91a2b4a3a58991a9e6 (diff)
fix clang compilation
Diffstat (limited to 'src')
-rw-r--r--src/commands.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands.cc b/src/commands.cc
index 6e5a2836..79c8fa4c 100644
--- a/src/commands.cc
+++ b/src/commands.cc
@@ -48,6 +48,7 @@ Buffer* open_fifo(StringView name, StringView filename, bool scroll)
template<typename T>
CandidateList prefix_complete(StringView prefix, const T& options)
{
+ using std::begin; using std::end;
CandidateList res;
std::copy_if(begin(options), end(options), std::back_inserter(res),
std::bind(prefix_match, std::placeholders::_1, prefix));
@@ -956,7 +957,7 @@ const CommandDesc map_key_cmd = {
prefix_complete(params[0].substr(0_byte, pos_in_token), scopes) };
if (token_to_complete == 1)
{
- constexpr auto modes = { "normal", "insert", "menu", "prompt", "goto", "view" };
+ constexpr const char* modes[] = { "normal", "insert", "menu", "prompt", "goto", "view" };
return { 0_byte, params[1].length(),
prefix_complete(params[1].substr(0_byte, pos_in_token), modes) };
}