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)
|
bool override)
|
||||||
{
|
{
|
||||||
if (not override and m_aliases.find(name) != m_aliases.end())
|
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
|
if (name.empty() or
|
||||||
find_if(name, [](char c){ return not isalnum(c); }) != name.end())
|
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;
|
std::vector<String> params;
|
||||||
for (size_t i = 1; i < argc; ++i)
|
for (size_t i = 1; i < argc; ++i)
|
||||||
params.push_back(argv[i]);
|
params.push_back(argv[i]);
|
||||||
|
|
||||||
kakoune(params);
|
kakoune(params);
|
||||||
}
|
}
|
||||||
|
|
|
@ -251,8 +251,8 @@ void command(Context& context, int)
|
||||||
":", get_color("Prompt"),
|
":", get_color("Prompt"),
|
||||||
std::bind(&CommandManager::complete, &CommandManager::instance(), _1, _2, _3, _4),
|
std::bind(&CommandManager::complete, &CommandManager::instance(), _1, _2, _3, _4),
|
||||||
[](const String& cmdline, PromptEvent event, Context& context) {
|
[](const String& cmdline, PromptEvent event, Context& context) {
|
||||||
if (event == PromptEvent::Validate)
|
if (event == PromptEvent::Validate)
|
||||||
CommandManager::instance().execute(cmdline, context);
|
CommandManager::instance().execute(cmdline, context);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ public:
|
||||||
utf8_iterator operator+(CharCount count) const
|
utf8_iterator operator+(CharCount count) const
|
||||||
{
|
{
|
||||||
if (count < 0)
|
if (count < 0)
|
||||||
return operator-(-count);
|
return operator-(-count);
|
||||||
|
|
||||||
utf8_iterator res = *this;
|
utf8_iterator res = *this;
|
||||||
while (count--)
|
while (count--)
|
||||||
|
@ -67,7 +67,7 @@ public:
|
||||||
utf8_iterator operator-(CharCount count) const
|
utf8_iterator operator-(CharCount count) const
|
||||||
{
|
{
|
||||||
if (count < 0)
|
if (count < 0)
|
||||||
return operator+(-count);
|
return operator+(-count);
|
||||||
|
|
||||||
utf8_iterator res = *this;
|
utf8_iterator res = *this;
|
||||||
while (count--)
|
while (count--)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user