diff options
author | Josh Rahm <rahm@google.com> | 2022-08-22 10:02:32 -0600 |
---|---|---|
committer | Josh Rahm <rahm@google.com> | 2022-08-22 10:02:32 -0600 |
commit | deb60257f50dbcc72563df697236db48edbf914c (patch) | |
tree | a9c17c80d2dcf45fd809b4c95248f2e4d6a74e84 /src/nvim/yankmap.c | |
parent | 242f75745009b3a0a2108d98ce6c02b6e13aac3f (diff) | |
download | rneovim-deb60257f50dbcc72563df697236db48edbf914c.tar.gz rneovim-deb60257f50dbcc72563df697236db48edbf914c.tar.bz2 rneovim-deb60257f50dbcc72563df697236db48edbf914c.zip |
feat(userregs): make the @" register call back into the userreg.
Before this changce, the userregs would not be repeated with @", now
they can be. There is still the problem of repeating with a count does
not call into the userreg, but that would be a lot of work to implement
Diffstat (limited to 'src/nvim/yankmap.c')
-rw-r--r-- | src/nvim/yankmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/yankmap.c b/src/nvim/yankmap.c index d9229e015d..c5b8ca8838 100644 --- a/src/nvim/yankmap.c +++ b/src/nvim/yankmap.c @@ -18,6 +18,7 @@ yankreg_T* yankmap_get(yankmap_T* yankmap, int reg) if (ret) { if (! (*ret)) { *ret = xcalloc(sizeof(yankreg_T), 1); + (*ret)->name = reg; } /* Add the back-reference */ |