From 60dc3630175b2b39798264296e533a9c2ca1b74b Mon Sep 17 00:00:00 2001 From: rebornix Date: Thu, 13 Oct 2016 11:33:34 -0700 Subject: [PATCH] fix append command to macro --- src/actions/actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/actions.ts b/src/actions/actions.ts index b167a6bec..7e65a1a5d 100644 --- a/src/actions/actions.ts +++ b/src/actions/actions.ts @@ -662,7 +662,7 @@ class CommandRecordMacro extends BaseCommand { vimState.recordedMacro = new RecordedState(); vimState.recordedMacro.registerName = register.toLocaleLowerCase(); - if (!/^[A-Z]+$/i.test(register) || !Register.has(register)) { + if (!/^[A-Z]+$/.test(register) || !Register.has(register)) { // If register name is upper case, it means we are appending commands to existing register instead of overriding. Register.putByKey(new RecordedState(), register); }