aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-03-02 01:24:38 -0500
committerJustin M. Keyes <justinkz@gmail.com>2016-03-02 01:24:38 -0500
commit56bfdd79346fd71fb0b587f8183c1cc3a0ddbae1 (patch)
tree28c7be449883276c7f3121e0af9ff85e9a7e4901 /src/nvim/ops.c
parent36cb847d09afc840f9875b93d504650332b623c3 (diff)
parent0d6cd2b8087d9ae7fdb2b70fcc40ecaf378b0af7 (diff)
downloadrneovim-56bfdd79346fd71fb0b587f8183c1cc3a0ddbae1.tar.gz
rneovim-56bfdd79346fd71fb0b587f8183c1cc3a0ddbae1.tar.bz2
rneovim-56bfdd79346fd71fb0b587f8183c1cc3a0ddbae1.zip
Merge #4265 'vim-patch:7.4.925'.
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r--src/nvim/ops.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index ab6e0d2e7d..8c7805ba04 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -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;