indent fixes

This commit is contained in:
Maxime Coste 2013-12-03 19:48:53 +00:00
parent df57870470
commit a443ff7ea6
4 changed files with 6 additions and 6 deletions

View File

@ -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())

View File

@ -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);
}

View File

@ -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);
});
}

View File

@ -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--)