summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2022-09-09 15:37:48 +0200
committerMaxime Coste <mawww@kakoune.org>2022-09-09 15:37:48 +0200
commit6828c9cb4d7b69bd662e2200596f77f8929c890d (patch)
tree2b04a1ff0e40bc92ff4fe261804aaccf3568bb68 /src
parent884490aaa3d77083d409f9d056bb7291e7af8ef5 (diff)
parentd324e506e3ebf35e151a6e3efaed940280589757 (diff)
Merge remote-tracking branch 'krobelus/cleanup'
Diffstat (limited to 'src')
-rw-r--r--src/commands.cc2
-rw-r--r--src/register_manager.hh1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/commands.cc b/src/commands.cc
index a5f9955d..7ef9deac 100644
--- a/src/commands.cc
+++ b/src/commands.cc
@@ -1452,7 +1452,7 @@ KeymapMode parse_keymap_mode(StringView str, const KeymapManager::UserModeList&
return (KeymapMode)(std::distance(user_modes.begin(), it) + offset);
}
-static constexpr Array<StringView, 8> modes = { "normal", "insert", "menu", "prompt", "goto", "view", "user", "object" };
+static constexpr auto modes = make_array<StringView>({ "normal", "insert", "menu", "prompt", "goto", "view", "user", "object" });
const CommandDesc debug_cmd = {
"debug",
diff --git a/src/register_manager.hh b/src/register_manager.hh
index 1fe8680b..2e760e6f 100644
--- a/src/register_manager.hh
+++ b/src/register_manager.hh
@@ -34,7 +34,6 @@ protected:
};
// static value register, which can be modified
-// using operator=, so should be user modifiable
class StaticRegister : public Register
{
public: