indent fixes
This commit is contained in:
parent
df57870470
commit
a443ff7ea6
|
@ -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())
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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--)
|
||||
|
|
Loading…
Reference in New Issue
Block a user