From 890069028899791b71607b331740ad83240a1b28 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Sat, 4 Nov 2017 09:18:26 +0300 Subject: [PATCH] src: Don't save whitespace-led commands in the `:` register --- src/normal.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/normal.cc b/src/normal.cc index e19f436d..363ebc8a 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -455,7 +455,7 @@ void command(Context& context, NormalParams params) { if (cmdline.empty()) cmdline = context.main_sel_register_value(':'); - else + else if (not is_blank(cmdline[0])) RegisterManager::instance()[':'].set(context, cmdline.str()); EnvVarMap env_vars = {