mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-09-19 08:07:28 +03:00
Merge pull request #941 from xconverge/support-num-registers-macros
Support num registers macros
This commit is contained in:
commit
b0f8376e9b
@ -1496,8 +1496,8 @@ export class ModeHandler implements vscode.Disposable {
|
||||
this.setupStatusBarItem(`Searching for: ${ this.vimState.searchState!.searchString }`);
|
||||
} else {
|
||||
this.setupStatusBarItem(
|
||||
`-- ${ this.currentMode.text.toUpperCase() } ${ this._vimState.isMultiCursor ? 'MULTI CURSOR' : '' } -- ` +
|
||||
`${this._vimState.isRecordingMacro ? 'Recording' : ''}`);
|
||||
`-- ${this.currentMode.text.toUpperCase()} ${this._vimState.isMultiCursor ? 'MULTI CURSOR' : ''} -- ` +
|
||||
`${this._vimState.isRecordingMacro ? 'Recording @' + this._vimState.recordedMacro.registerName : ''}`);
|
||||
}
|
||||
|
||||
vscode.commands.executeCommand('setContext', 'vim.mode', this.currentMode.text);
|
||||
|
@ -54,7 +54,7 @@ export class Register {
|
||||
}
|
||||
|
||||
public static isValidRegisterForMacro(register: string): boolean {
|
||||
return /^[a-zA-Z]+$/i.test(register);
|
||||
return /^[a-zA-Z0-9]+$/i.test(register);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user