| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.145 |
| Fcc: outbox |
| From: Bram Moolenaar <Bram@moolenaar.net> |
| Mime-Version: 1.0 |
| Content-Type: text/plain; charset=UTF-8 |
| Content-Transfer-Encoding: 8bit |
| |
| |
| Patch 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) |
| Files: runtime/doc/eval.txt, src/ops.c |
| |
| |
| |
| |
| |
| *** 3459,3465 **** |
| "v" for |characterwise| text |
| "V" for |linewise| text |
| "<CTRL-V>{width}" for |blockwise-visual| text |
| ! 0 for an empty or unknown register |
| <CTRL-V> is one character with value 0x16. |
| If {regname} is not specified, |v:register| is used. |
| |
| --- 3460,3466 ---- |
| "v" for |characterwise| text |
| "V" for |linewise| text |
| "<CTRL-V>{width}" for |blockwise-visual| text |
| ! "" for an empty or unknown register |
| <CTRL-V> is one character with value 0x16. |
| If {regname} is not specified, |v:register| is used. |
| |
| |
| |
| |
| *** 6240,6246 **** |
| regname = may_get_selection(regname); |
| #endif |
| |
| ! /* Should we check for a valid name? */ |
| get_yank_register(regname, FALSE); |
| |
| if (y_current->y_array != NULL) |
| --- 6240,6248 ---- |
| regname = may_get_selection(regname); |
| #endif |
| |
| ! if (regname != NUL && !valid_yank_reg(regname, FALSE)) |
| ! return MAUTO; |
| ! |
| get_yank_register(regname, FALSE); |
| |
| if (y_current->y_array != NULL) |
| |
| |
| |
| *** 740,741 **** |
| --- 740,743 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 145, |
| /**/ |
| |
| -- |
| hundred-and-one symptoms of being an internet addict: |
| 151. You find yourself engaged to someone you've never actually met, |
| except through e-mail. |
| |
| /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ |
| /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ |
| \\\ an exciting new programming language -- http://www.Zimbu.org /// |
| \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |