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