mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-25 21:16:38 +03:00
Small style tweaks
This commit is contained in:
parent
3bdc30e381
commit
499bde10bd
@ -875,7 +875,7 @@ void deindent(Context& context, NormalParams)
|
||||
template<ObjectFlags flags, SelectMode mode = SelectMode::Replace>
|
||||
void select_object(Context& context, NormalParams params)
|
||||
{
|
||||
int level = params.count <= 0 ? 0 : params.count - 1;
|
||||
const int level = params.count <= 0 ? 0 : params.count - 1;
|
||||
on_next_key_with_autoinfo(context, KeymapMode::None,
|
||||
[level](Key key, Context& context) {
|
||||
if (key.modifiers != Key::Modifiers::None)
|
||||
|
@ -128,7 +128,7 @@ String ShellManager::get_val(StringView name, const Context& context) const
|
||||
{
|
||||
auto env_var = std::find_if(
|
||||
m_env_vars.begin(), m_env_vars.end(),
|
||||
[&](const std::pair<Regex, EnvVarRetriever>& pair)
|
||||
[name](const std::pair<Regex, EnvVarRetriever>& pair)
|
||||
{ return regex_match(name.begin(), name.end(), pair.first); });
|
||||
|
||||
if (env_var == m_env_vars.end())
|
||||
|
Loading…
Reference in New Issue
Block a user