| To: vim_dev@googlegroups.com |
| Subject: Patch 7.3.901 |
| 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.901 |
| Problem: Outdated comment, ugly condition. |
| Solution: Update a few comments, break line. |
| Files: src/getchar.c, src/misc1.c, src/undo.c |
| |
| |
| |
| |
| |
| *** 444,450 **** |
| typebuf.tb_off = MAXMAPLEN; |
| typebuf.tb_len = 0; |
| } |
| ! else /* remove mapped characters only */ |
| { |
| typebuf.tb_off += typebuf.tb_maplen; |
| typebuf.tb_len -= typebuf.tb_maplen; |
| --- 444,450 ---- |
| typebuf.tb_off = MAXMAPLEN; |
| typebuf.tb_len = 0; |
| } |
| ! else /* remove mapped characters at the start only */ |
| { |
| typebuf.tb_off += typebuf.tb_maplen; |
| typebuf.tb_len -= typebuf.tb_maplen; |
| |
| |
| |
| *** 5054,5060 **** |
| int cx = NUL; |
| int cy = NUL; |
| |
| - /* TODO: multi-byte characters. */ |
| while (len > 0) |
| { |
| cx = PTR2CHAR(px); |
| --- 5054,5059 ---- |
| |
| |
| |
| *** 216,221 **** |
| --- 216,222 ---- |
| |
| /* |
| * Save the current line for both the "u" and "U" command. |
| + * Careful: may trigger autocommands that reload the buffer. |
| * Returns OK or FAIL. |
| */ |
| int |
| |
| *** 238,245 **** |
| if (undo_off) |
| return OK; |
| |
| ! if (top > curbuf->b_ml.ml_line_count || |
| ! top >= bot || bot > curbuf->b_ml.ml_line_count + 1) |
| return FALSE; /* rely on caller to do error messages */ |
| |
| if (top + 2 == bot) |
| --- 239,247 ---- |
| if (undo_off) |
| return OK; |
| |
| ! if (top > curbuf->b_ml.ml_line_count |
| ! || top >= bot |
| ! || bot > curbuf->b_ml.ml_line_count + 1) |
| return FALSE; /* rely on caller to do error messages */ |
| |
| if (top + 2 == bot) |
| |
| |
| |
| *** 730,731 **** |
| --- 730,733 ---- |
| { /* Add new patch number below this line */ |
| + /**/ |
| + 901, |
| /**/ |
| |
| -- |
| The CIA drives around in cars with the "Intel inside" logo. |
| |
| /// 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 /// |