Mercurial > vim
comparison src/register.c @ 20743:a672feb8fc4f v8.2.0924
patch 8.2.0924: cannot save and restore a register properly
Commit: https://github.com/vim/vim/commit/bb861e293e0170455184079fa537278754b07911
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 7 18:16:36 2020 +0200
patch 8.2.0924: cannot save and restore a register properly
Problem: Cannot save and restore a register properly.
Solution: Add getreginfo() and make setreg() accept a dictionary. (Andy
Massimino, closes #3370)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 07 Jun 2020 18:30:03 +0200 |
parents | 06a1dd50463e |
children | b8ca32dcfabb |
comparison
equal
deleted
inserted
replaced
20742:8c304b9fcb1a | 20743:a672feb8fc4f |
---|---|
2109 #endif | 2109 #endif |
2110 } | 2110 } |
2111 } | 2111 } |
2112 | 2112 |
2113 /* | 2113 /* |
2114 * Return the index of the register "" points to. | |
2115 */ | |
2116 int | |
2117 get_unname_register() | |
2118 { | |
2119 return y_previous == NULL ? -1 : y_previous - &y_regs[0]; | |
2120 } | |
2121 | |
2122 /* | |
2114 * ":dis" and ":registers": Display the contents of the yank registers. | 2123 * ":dis" and ":registers": Display the contents of the yank registers. |
2115 */ | 2124 */ |
2116 void | 2125 void |
2117 ex_display(exarg_T *eap) | 2126 ex_display(exarg_T *eap) |
2118 { | 2127 { |