mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
updated for version 7.4.145
Problem: getregtype() does not return zero for unknown register. Solution: Adjust documention: return empty string for unknown register. Check the register name to be valid. (Yukihiro Nakadaira)
This commit is contained in:
@@ -3460,7 +3460,7 @@ getregtype([{regname}]) *getregtype()*
|
|||||||
"v" for |characterwise| text
|
"v" for |characterwise| text
|
||||||
"V" for |linewise| text
|
"V" for |linewise| text
|
||||||
"<CTRL-V>{width}" for |blockwise-visual| text
|
"<CTRL-V>{width}" for |blockwise-visual| text
|
||||||
0 for an empty or unknown register
|
"" for an empty or unknown register
|
||||||
<CTRL-V> is one character with value 0x16.
|
<CTRL-V> is one character with value 0x16.
|
||||||
If {regname} is not specified, |v:register| is used.
|
If {regname} is not specified, |v:register| is used.
|
||||||
|
|
||||||
|
@@ -6240,7 +6240,9 @@ get_reg_type(regname, reglen)
|
|||||||
regname = may_get_selection(regname);
|
regname = may_get_selection(regname);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Should we check for a valid name? */
|
if (regname != NUL && !valid_yank_reg(regname, FALSE))
|
||||||
|
return MAUTO;
|
||||||
|
|
||||||
get_yank_register(regname, FALSE);
|
get_yank_register(regname, FALSE);
|
||||||
|
|
||||||
if (y_current->y_array != NULL)
|
if (y_current->y_array != NULL)
|
||||||
|
@@ -738,6 +738,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
145,
|
||||||
/**/
|
/**/
|
||||||
144,
|
144,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user