mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-11-09 13:34:29 +03:00
Merge branch 'master' into perf
This commit is contained in:
commit
6a36969dd4
@ -19,6 +19,10 @@ export class Notation {
|
|||||||
* (e.g. <space>, <cr>, <leader>)
|
* (e.g. <space>, <cr>, <leader>)
|
||||||
*/
|
*/
|
||||||
public static NormalizeKey(key: string, leaderKey: string): string {
|
public static NormalizeKey(key: string, leaderKey: string): string {
|
||||||
|
if (typeof key !== 'string') {
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
|
||||||
if (!this.isSurroundedByAngleBrackets(key) && key.length > 1) {
|
if (!this.isSurroundedByAngleBrackets(key) && key.length > 1) {
|
||||||
key = `<${key.toLocaleLowerCase()}>`;
|
key = `<${key.toLocaleLowerCase()}>`;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user