From 92761344be4fe3e68e396ec999249c8afbe769eb Mon Sep 17 00:00:00 2001 From: xconverge Date: Sat, 25 Mar 2017 12:02:51 -0700 Subject: [PATCH] minor cleanup to improve leader usage with --- src/configuration/configuration.ts | 5 +++++ src/notation.ts | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/configuration/configuration.ts b/src/configuration/configuration.ts index 457d376c51e..1a118755fef 100644 --- a/src/configuration/configuration.ts +++ b/src/configuration/configuration.ts @@ -62,6 +62,11 @@ class ConfigurationClass { } } + // is special, change it to " " internally if it is used as leader + if (this.leader.toLowerCase() === "") { + this.leader = " "; + } + // Get the cursor type from vscode const cursorStyleString = vscode.workspace.getConfiguration().get("editor.cursorStyle") as string; this.userCursor = this.cursorStyleFromString(cursorStyleString); diff --git a/src/notation.ts b/src/notation.ts index dab212869bf..e87792c181c 100644 --- a/src/notation.ts +++ b/src/notation.ts @@ -30,12 +30,6 @@ export class AngleBracketNotation { } if (key.toLowerCase() === "") { - // is special, change it to " " internally if it is used - if (Configuration.leader.toLowerCase() === "") { - Configuration.leader = " "; - } - - // Otherwise just return leader from config as-is return Configuration.leader; }