Small style tweaks

This commit is contained in:
Maxime Coste 2015-05-26 18:40:39 +01:00
parent 3bdc30e381
commit 499bde10bd
2 changed files with 2 additions and 2 deletions

View File

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

View File

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