| To: vim_dev@googlegroups.com |
| Subject: Patch 7.4.725 |
| 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.725 |
| Problem: ":call setreg('"', [])" reports an internal error. |
| Solution: Make the register empty. (Yasuhiro Matsumoto) |
| Files: src/ops.c |
| |
| |
| |
| |
| |
| *** 6642,6647 **** |
| --- 6642,6655 ---- |
| } |
| } |
| |
| + /* Without any lines make the register empty. */ |
| + if (y_ptr->y_size + newlines == 0) |
| + { |
| + vim_free(y_ptr->y_array); |
| + y_ptr->y_array = NULL; |
| + return; |
| + } |
| + |
| /* |
| * Allocate an array to hold the pointers to the new register lines. |
| * If the register was not empty, move the existing lines to the new array. |
| |
| |
| |
| *** 743,744 **** |
| --- 743,746 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 725, |
| /**/ |
| |
| -- |
| How To Keep A Healthy Level Of Insanity: |
| 6. In the memo field of all your checks, write "for sexual favors". |
| |
| /// 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 /// |