Hi Bram and list,
I added a state of recording into register and/or executing the register to built-in function mode(1).
See the modified document in the patch.
How about this?
Possibly, should we add another function?
--
Best regards,
Hirohito Higashi (h_east)
https://github.com/vim/vim/pull/2745
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
Merging #2745 into master will increase coverage by
<.01%
.
The diff coverage is69.23%
.
@@ Coverage Diff @@ ## master #2745 +/- ## ========================================== + Coverage 75% 75.01% +<.01% ========================================== Files 92 92 Lines 134183 134188 +5 ========================================== + Hits 100643 100657 +14 + Misses 33540 33531 -9
Impacted Files | Coverage Δ | |
---|---|---|
src/evalfunc.c | 83.61% <69.23%> (+0.01%) |
⬆️ |
src/ex_cmds.c | 79.39% <0%> (-0.23%) |
⬇️ |
src/misc1.c | 84.34% <0%> (-0.07%) |
⬇️ |
src/term.c | 60.21% <0%> (ø) |
⬆️ |
src/if_py_both.h | 76.59% <0%> (ø) |
⬆️ |
src/screen.c | 77.45% <0%> (+0.02%) |
⬆️ |
src/syntax.c | 78.27% <0%> (+0.02%) |
⬆️ |
src/normal.c | 73.13% <0%> (+0.02%) |
⬆️ |
src/channel.c | 82.79% <0%> (+0.04%) |
⬆️ |
src/os_unix.c | 54.61% <0%> (+0.13%) |
⬆️ |
... and 4 more |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 295ac5a...635d3b0. Read the comment docs.
@h-east pushed 4 commits.
—
You are receiving this because you are subscribed to this thread.
I reverted mode()
modification and added function register_executing()
and register_recording()
.
Subject changed.
—
Rename function name to reg_executing()
and reg_recording()
👍
@xtal8 commented on this pull request.
> @@ -1016,6 +1016,8 @@ Various: *various-functions* getreg() get contents of a register getregtype() get type of a register setreg() set contents and type of a register + regster_executing() return the state of the register executing
s/regster/reg
> @@ -1016,6 +1016,8 @@ Various: *various-functions* getreg() get contents of a register getregtype() get type of a register setreg() set contents and type of a register + regster_executing() return the state of the register executing + regster_recording() return the state of the register recording
s/regster/reg
@xtal8 Thanks! I fixed.
This is really neat! Of course, the only thing missing now is an autocmd or two on "start recording" and "stop recording" :).