| To: vim_dev@googlegroups.com |
| Subject: Patch 7.3.1253 |
| 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.3.1253 (after 7.3.1200) |
| Problem: Still undo problem after using CTRL-R = setline(). (Hirohito |
| Higashi) |
| Solution: Set the ins_need_undo flag. |
| Files: src/edit.c |
| |
| |
| |
| |
| |
| *** 8134,8148 **** |
| # ifdef USE_IM_CONTROL |
| int im_on = im_get_status(); |
| # endif |
| regname = get_expr_register(); |
| # ifdef USE_IM_CONTROL |
| /* Restore the Input Method. */ |
| if (im_on) |
| im_set_active(TRUE); |
| # endif |
| ! if (regname == '=') |
| ! /* sync undo, so the effect of e.g., setline() can be undone */ |
| ! u_sync(TRUE); |
| } |
| if (regname == NUL || !valid_yank_reg(regname, FALSE)) |
| { |
| --- 8134,8150 ---- |
| # ifdef USE_IM_CONTROL |
| int im_on = im_get_status(); |
| # endif |
| + /* Sync undo, so the effect of e.g., setline() can be undone. */ |
| + u_sync(TRUE); |
| + ins_need_undo = TRUE; |
| + |
| regname = get_expr_register(); |
| # ifdef USE_IM_CONTROL |
| /* Restore the Input Method. */ |
| if (im_on) |
| im_set_active(TRUE); |
| # endif |
| ! Insstart = curwin->w_cursor; |
| } |
| if (regname == NUL || !valid_yank_reg(regname, FALSE)) |
| { |
| |
| |
| |
| *** 730,731 **** |
| --- 730,733 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 1253, |
| /**/ |
| |
| -- |
| LAUNCELOT leaps into SHOT with a mighty cry and runs the GUARD through and |
| hacks him to the floor. Blood. Swashbuckling music (perhaps). |
| LAUNCELOT races through into the castle screaming. |
| SECOND SENTRY: Hey! |
| "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD |
| |
| /// 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 /// |