Merge pull request #941 from xconverge/support-num-registers-macros

Support num registers macros
This commit is contained in:
Peng Lyu 2016-10-18 20:57:30 -07:00 committed by GitHub
commit b0f8376e9b
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);
}
/**