|
|
dcaee6 |
To: vim_dev@googlegroups.com
|
|
|
dcaee6 |
Subject: Patch 7.4.145
|
|
|
dcaee6 |
Fcc: outbox
|
|
|
dcaee6 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
|
dcaee6 |
Mime-Version: 1.0
|
|
|
dcaee6 |
Content-Type: text/plain; charset=UTF-8
|
|
|
dcaee6 |
Content-Transfer-Encoding: 8bit
|
|
|
dcaee6 |
------------
|
|
|
dcaee6 |
|
|
|
dcaee6 |
Patch 7.4.145
|
|
|
dcaee6 |
Problem: getregtype() does not return zero for unknown register.
|
|
|
dcaee6 |
Solution: Adjust documention: return empty string for unknown register.
|
|
|
dcaee6 |
Check the register name to be valid. (Yukihiro Nakadaira)
|
|
|
dcaee6 |
Files: runtime/doc/eval.txt, src/ops.c
|
|
|
dcaee6 |
|
|
|
dcaee6 |
|
|
|
dcaee6 |
*** ../vim-7.4.144/runtime/doc/eval.txt 2013-11-09 01:44:38.000000000 +0100
|
|
|
dcaee6 |
--- runtime/doc/eval.txt 2014-01-14 12:24:35.000000000 +0100
|
|
|
dcaee6 |
***************
|
|
|
dcaee6 |
*** 3459,3465 ****
|
|
|
dcaee6 |
"v" for |characterwise| text
|
|
|
dcaee6 |
"V" for |linewise| text
|
|
|
dcaee6 |
"<CTRL-V>{width}" for |blockwise-visual| text
|
|
|
dcaee6 |
! 0 for an empty or unknown register
|
|
|
dcaee6 |
<CTRL-V> is one character with value 0x16.
|
|
|
dcaee6 |
If {regname} is not specified, |v:register| is used.
|
|
|
dcaee6 |
|
|
|
dcaee6 |
--- 3460,3466 ----
|
|
|
dcaee6 |
"v" for |characterwise| text
|
|
|
dcaee6 |
"V" for |linewise| text
|
|
|
dcaee6 |
"<CTRL-V>{width}" for |blockwise-visual| text
|
|
|
dcaee6 |
! "" for an empty or unknown register
|
|
|
dcaee6 |
<CTRL-V> is one character with value 0x16.
|
|
|
dcaee6 |
If {regname} is not specified, |v:register| is used.
|
|
|
dcaee6 |
|
|
|
dcaee6 |
*** ../vim-7.4.144/src/ops.c 2013-11-21 14:39:58.000000000 +0100
|
|
|
dcaee6 |
--- src/ops.c 2014-01-14 12:28:33.000000000 +0100
|
|
|
dcaee6 |
***************
|
|
|
dcaee6 |
*** 6240,6246 ****
|
|
|
dcaee6 |
regname = may_get_selection(regname);
|
|
|
dcaee6 |
#endif
|
|
|
dcaee6 |
|
|
|
dcaee6 |
! /* Should we check for a valid name? */
|
|
|
dcaee6 |
get_yank_register(regname, FALSE);
|
|
|
dcaee6 |
|
|
|
dcaee6 |
if (y_current->y_array != NULL)
|
|
|
dcaee6 |
--- 6240,6248 ----
|
|
|
dcaee6 |
regname = may_get_selection(regname);
|
|
|
dcaee6 |
#endif
|
|
|
dcaee6 |
|
|
|
dcaee6 |
! if (regname != NUL && !valid_yank_reg(regname, FALSE))
|
|
|
dcaee6 |
! return MAUTO;
|
|
|
dcaee6 |
!
|
|
|
dcaee6 |
get_yank_register(regname, FALSE);
|
|
|
dcaee6 |
|
|
|
dcaee6 |
if (y_current->y_array != NULL)
|
|
|
dcaee6 |
*** ../vim-7.4.144/src/version.c 2014-01-14 12:18:41.000000000 +0100
|
|
|
dcaee6 |
--- src/version.c 2014-01-14 12:26:13.000000000 +0100
|
|
|
dcaee6 |
***************
|
|
|
dcaee6 |
*** 740,741 ****
|
|
|
dcaee6 |
--- 740,743 ----
|
|
|
dcaee6 |
{ /* Add new patch number below this line */
|
|
|
dcaee6 |
+ /**/
|
|
|
dcaee6 |
+ 145,
|
|
|
dcaee6 |
/**/
|
|
|
dcaee6 |
|
|
|
dcaee6 |
--
|
|
|
dcaee6 |
hundred-and-one symptoms of being an internet addict:
|
|
|
dcaee6 |
151. You find yourself engaged to someone you've never actually met,
|
|
|
dcaee6 |
except through e-mail.
|
|
|
dcaee6 |
|
|
|
dcaee6 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
|
dcaee6 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
|
dcaee6 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
|
dcaee6 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|