mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-11-09 05:21:49 +03:00
Merge pull request #2881 from VSCodeVim/malformedremap
fix: handle non-string remapped key. closes #2873
This commit is contained in:
commit
93a48b530a
@ -19,6 +19,10 @@ export class Notation {
|
||||
* (e.g. <space>, <cr>, <leader>)
|
||||
*/
|
||||
public static NormalizeKey(key: string, leaderKey: string): string {
|
||||
if (typeof key !== 'string') {
|
||||
return key;
|
||||
}
|
||||
|
||||
if (!this.isSurroundedByAngleBrackets(key) && key.length > 1) {
|
||||
key = `<${key.toLocaleLowerCase()}>`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user