mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 06:48:17 +00:00
Merge #4265 'vim-patch:7.4.925'.
This commit is contained in:
@@ -836,12 +836,13 @@ int do_record(int c)
|
||||
yankreg_T *old_y_previous;
|
||||
int retval;
|
||||
|
||||
if (Recording == FALSE) { /* start recording */
|
||||
/* registers 0-9, a-z and " are allowed */
|
||||
if (c < 0 || (!ASCII_ISALNUM(c) && c != '"'))
|
||||
if (Recording == false) {
|
||||
// start recording
|
||||
// registers 0-9, a-z and " are allowed
|
||||
if (c < 0 || (!ASCII_ISALNUM(c) && c != '"')) {
|
||||
retval = FAIL;
|
||||
else {
|
||||
Recording = TRUE;
|
||||
} else {
|
||||
Recording = c;
|
||||
showmode();
|
||||
regname = c;
|
||||
retval = OK;
|
||||
|
Reference in New Issue
Block a user