summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2013-12-03 19:48:53 +0000
committerMaxime Coste <frrrwww@gmail.com>2013-12-03 19:49:09 +0000
commita443ff7ea6fb9da8446752cc6b3db234d4bc6255 (patch)
treeffe281b1944fc72f62f77f4708c8526d0fd0a090 /src
parentdf57870470c0249b59f9203c16ddb7b8f3375d8e (diff)
indent fixes
Diffstat (limited to 'src')
-rw-r--r--src/color_registry.cc2
-rw-r--r--src/main.cc2
-rw-r--r--src/normal.cc4
-rw-r--r--src/utf8_iterator.hh4
4 files changed, 6 insertions, 6 deletions
diff --git a/src/color_registry.cc b/src/color_registry.cc
index 271c750b..b275f392 100644
--- a/src/color_registry.cc
+++ b/src/color_registry.cc
@@ -25,7 +25,7 @@ void ColorRegistry::register_alias(const String& name, const String& colordesc,
bool override)
{
if (not override and m_aliases.find(name) != m_aliases.end())
- throw runtime_error("alias '" + name + "' already defined");
+ throw runtime_error("alias '" + name + "' already defined");
if (name.empty() or
find_if(name, [](char c){ return not isalnum(c); }) != name.end())
diff --git a/src/main.cc b/src/main.cc
index 2774609c..390c3f8f 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -350,7 +350,7 @@ int main(int argc, char* argv[])
std::vector<String> params;
for (size_t i = 1; i < argc; ++i)
- params.push_back(argv[i]);
+ params.push_back(argv[i]);
kakoune(params);
}
diff --git a/src/normal.cc b/src/normal.cc
index e6e101e7..0b50195d 100644
--- a/src/normal.cc
+++ b/src/normal.cc
@@ -251,8 +251,8 @@ void command(Context& context, int)
":", get_color("Prompt"),
std::bind(&CommandManager::complete, &CommandManager::instance(), _1, _2, _3, _4),
[](const String& cmdline, PromptEvent event, Context& context) {
- if (event == PromptEvent::Validate)
- CommandManager::instance().execute(cmdline, context);
+ if (event == PromptEvent::Validate)
+ CommandManager::instance().execute(cmdline, context);
});
}
diff --git a/src/utf8_iterator.hh b/src/utf8_iterator.hh
index 20027aa3..4fa206b3 100644
--- a/src/utf8_iterator.hh
+++ b/src/utf8_iterator.hh
@@ -56,7 +56,7 @@ public:
utf8_iterator operator+(CharCount count) const
{
if (count < 0)
- return operator-(-count);
+ return operator-(-count);
utf8_iterator res = *this;
while (count--)
@@ -67,7 +67,7 @@ public:
utf8_iterator operator-(CharCount count) const
{
if (count < 0)
- return operator+(-count);
+ return operator+(-count);
utf8_iterator res = *this;
while (count--)