Mercurial > vim
diff src/screen.c @ 14004:e124262d435e v8.1.0020
patch 8.1.0020: cannot tell whether a register is executing or recording
commit https://github.com/vim/vim/commit/0b6d911e5de1a1c10a23d4c2ee1b0275c474a2dd
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 22 20:35:17 2018 +0200
patch 8.1.0020: cannot tell whether a register is executing or recording
Problem: Cannot tell whether a register is being used for executing or
recording.
Solution: Add reg_executing() and reg_recording(). (Hirohito Higashi,
closes #2745) Rename the global variables for consistency. Store
the register name in reg_executing.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 22 May 2018 20:45:05 +0200 |
parents | d111462e0173 |
children | b5e43a048878 |
line wrap: on
line diff
--- a/src/screen.c +++ b/src/screen.c @@ -10255,7 +10255,7 @@ showmode(void) && ((State & INSERT) || restart_edit || VIsual_active)); - if (do_mode || Recording) + if (do_mode || reg_recording != 0) { /* * Don't show mode right now, when not redrawing or inside a mapping. @@ -10414,7 +10414,7 @@ showmode(void) need_clear = TRUE; } - if (Recording + if (reg_recording != 0 #ifdef FEAT_INS_EXPAND && edit_submode == NULL /* otherwise it gets too long */ #endif @@ -10489,7 +10489,7 @@ clearmode(void) int save_msg_col = msg_col; msg_pos_mode(); - if (Recording) + if (reg_recording != 0) recording_mode(HL_ATTR(HLF_CM)); msg_clr_eos(); @@ -10504,7 +10504,7 @@ recording_mode(int attr) if (!shortmess(SHM_RECORDING)) { char_u s[4]; - sprintf((char *)s, " @%c", Recording); + sprintf((char *)s, " @%c", reg_recording); MSG_PUTS_ATTR(s, attr); } }