1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-24 07:53:41 +03:00

Better style

This commit is contained in:
Sidharth Kshatriya 2021-06-24 19:53:38 +05:30
parent 5244ecbe9b
commit c5a1ddeaff

View File

@ -146,7 +146,7 @@ Vector<String> generate_env(StringView cmdline, const Context& context, const Sh
auto match_name = [&](const String& s) {
return s.substr(0_byte, shell_name.length()) == shell_name and
s.substr(0_byte + shell_name.length(), 1_byte) == "=";
s.substr(shell_name.length(), 1_byte) == "=";
};
if (any_of(env, match_name))
continue;