summaryrefslogtreecommitdiff
path: root/src/command_manager.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-01-06 13:40:56 +0000
committerMaxime Coste <frrrwww@gmail.com>2015-01-06 13:43:37 +0000
commit295a97f2a64b0b8d548ed7948d6c278ba04a9c67 (patch)
tree03ad360ec44370862c4b92604ed1b17b6d43ae6d /src/command_manager.hh
parent8e92e0eebcf38d539fe055e455b8d628f5caf9f3 (diff)
Rename memoryview to ArrayView
Diffstat (limited to 'src/command_manager.hh')
-rw-r--r--src/command_manager.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/command_manager.hh b/src/command_manager.hh
index 90b583f9..f6118781 100644
--- a/src/command_manager.hh
+++ b/src/command_manager.hh
@@ -4,7 +4,7 @@
#include "coord.hh"
#include "completion.hh"
#include "flags.hh"
-#include "memoryview.hh"
+#include "array_view.hh"
#include "shell_manager.hh"
#include "parameters_parser.hh"
#include "string.hh"
@@ -18,7 +18,7 @@ namespace Kakoune
{
class Context;
-using CommandParameters = memoryview<String>;
+using CommandParameters = ArrayView<String>;
using Command = std::function<void (const ParametersParser& parser, Context& context)>;
using CommandCompleter = std::function<Completions (const Context& context,
CompletionFlags,
@@ -38,7 +38,7 @@ public:
using ArgumentCompleter = std::function<Completions (const Context&,
CompletionFlags flags,
const String&, ByteCount)>;
- using ArgumentCompleterList = memoryview<ArgumentCompleter>;
+ using ArgumentCompleterList = ArrayView<ArgumentCompleter>;
PerArgumentCommandCompleter(ArgumentCompleterList completers)
: m_completers(completers.begin(), completers.end()) {}
@@ -59,7 +59,7 @@ class CommandManager : public Singleton<CommandManager>
{
public:
void execute(StringView command_line, Context& context,
- memoryview<String> shell_params = {},
+ ArrayView<String> shell_params = {},
const EnvVarMap& env_vars = EnvVarMap{});
Completions complete(const Context& context, CompletionFlags flags,