Merge remote-tracking branch 'lenormf/fix-private-commands-in-register'

This commit is contained in:
Maxime Coste 2017-11-05 12:22:28 +08:00
commit 52f4af6a83

View File

@ -455,7 +455,7 @@ void command(Context& context, NormalParams params)
{ {
if (cmdline.empty()) if (cmdline.empty())
cmdline = context.main_sel_register_value(':'); cmdline = context.main_sel_register_value(':');
else else if (not is_blank(cmdline[0]))
RegisterManager::instance()[':'].set(context, cmdline.str()); RegisterManager::instance()[':'].set(context, cmdline.str());
EnvVarMap env_vars = { EnvVarMap env_vars = {