|
Karsten Hopp |
48b30d |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
48b30d |
Subject: Patch 7.3.901
|
|
Karsten Hopp |
48b30d |
Fcc: outbox
|
|
Karsten Hopp |
48b30d |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
48b30d |
Mime-Version: 1.0
|
|
Karsten Hopp |
48b30d |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
48b30d |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
48b30d |
------------
|
|
Karsten Hopp |
48b30d |
|
|
Karsten Hopp |
48b30d |
Patch 7.3.901
|
|
Karsten Hopp |
48b30d |
Problem: Outdated comment, ugly condition.
|
|
Karsten Hopp |
48b30d |
Solution: Update a few comments, break line.
|
|
Karsten Hopp |
48b30d |
Files: src/getchar.c, src/misc1.c, src/undo.c
|
|
Karsten Hopp |
48b30d |
|
|
Karsten Hopp |
48b30d |
|
|
Karsten Hopp |
48b30d |
*** ../vim-7.3.900/src/getchar.c 2013-03-16 21:42:12.000000000 +0100
|
|
Karsten Hopp |
48b30d |
--- src/getchar.c 2013-04-12 15:01:39.000000000 +0200
|
|
Karsten Hopp |
48b30d |
***************
|
|
Karsten Hopp |
48b30d |
*** 444,450 ****
|
|
Karsten Hopp |
48b30d |
typebuf.tb_off = MAXMAPLEN;
|
|
Karsten Hopp |
48b30d |
typebuf.tb_len = 0;
|
|
Karsten Hopp |
48b30d |
}
|
|
Karsten Hopp |
48b30d |
! else /* remove mapped characters only */
|
|
Karsten Hopp |
48b30d |
{
|
|
Karsten Hopp |
48b30d |
typebuf.tb_off += typebuf.tb_maplen;
|
|
Karsten Hopp |
48b30d |
typebuf.tb_len -= typebuf.tb_maplen;
|
|
Karsten Hopp |
48b30d |
--- 444,450 ----
|
|
Karsten Hopp |
48b30d |
typebuf.tb_off = MAXMAPLEN;
|
|
Karsten Hopp |
48b30d |
typebuf.tb_len = 0;
|
|
Karsten Hopp |
48b30d |
}
|
|
Karsten Hopp |
48b30d |
! else /* remove mapped characters at the start only */
|
|
Karsten Hopp |
48b30d |
{
|
|
Karsten Hopp |
48b30d |
typebuf.tb_off += typebuf.tb_maplen;
|
|
Karsten Hopp |
48b30d |
typebuf.tb_len -= typebuf.tb_maplen;
|
|
Karsten Hopp |
48b30d |
*** ../vim-7.3.900/src/misc1.c 2013-03-19 18:31:45.000000000 +0100
|
|
Karsten Hopp |
48b30d |
--- src/misc1.c 2013-03-19 20:43:48.000000000 +0100
|
|
Karsten Hopp |
48b30d |
***************
|
|
Karsten Hopp |
48b30d |
*** 5054,5060 ****
|
|
Karsten Hopp |
48b30d |
int cx = NUL;
|
|
Karsten Hopp |
48b30d |
int cy = NUL;
|
|
Karsten Hopp |
48b30d |
|
|
Karsten Hopp |
48b30d |
- /* TODO: multi-byte characters. */
|
|
Karsten Hopp |
48b30d |
while (len > 0)
|
|
Karsten Hopp |
48b30d |
{
|
|
Karsten Hopp |
48b30d |
cx = PTR2CHAR(px);
|
|
Karsten Hopp |
48b30d |
--- 5054,5059 ----
|
|
Karsten Hopp |
48b30d |
*** ../vim-7.3.900/src/undo.c 2012-08-23 12:58:56.000000000 +0200
|
|
Karsten Hopp |
48b30d |
--- src/undo.c 2012-12-12 16:00:19.000000000 +0100
|
|
Karsten Hopp |
48b30d |
***************
|
|
Karsten Hopp |
48b30d |
*** 216,221 ****
|
|
Karsten Hopp |
48b30d |
--- 216,222 ----
|
|
Karsten Hopp |
48b30d |
|
|
Karsten Hopp |
48b30d |
/*
|
|
Karsten Hopp |
48b30d |
* Save the current line for both the "u" and "U" command.
|
|
Karsten Hopp |
48b30d |
+ * Careful: may trigger autocommands that reload the buffer.
|
|
Karsten Hopp |
48b30d |
* Returns OK or FAIL.
|
|
Karsten Hopp |
48b30d |
*/
|
|
Karsten Hopp |
48b30d |
int
|
|
Karsten Hopp |
48b30d |
***************
|
|
Karsten Hopp |
48b30d |
*** 238,245 ****
|
|
Karsten Hopp |
48b30d |
if (undo_off)
|
|
Karsten Hopp |
48b30d |
return OK;
|
|
Karsten Hopp |
48b30d |
|
|
Karsten Hopp |
48b30d |
! if (top > curbuf->b_ml.ml_line_count ||
|
|
Karsten Hopp |
48b30d |
! top >= bot || bot > curbuf->b_ml.ml_line_count + 1)
|
|
Karsten Hopp |
48b30d |
return FALSE; /* rely on caller to do error messages */
|
|
Karsten Hopp |
48b30d |
|
|
Karsten Hopp |
48b30d |
if (top + 2 == bot)
|
|
Karsten Hopp |
48b30d |
--- 239,247 ----
|
|
Karsten Hopp |
48b30d |
if (undo_off)
|
|
Karsten Hopp |
48b30d |
return OK;
|
|
Karsten Hopp |
48b30d |
|
|
Karsten Hopp |
48b30d |
! if (top > curbuf->b_ml.ml_line_count
|
|
Karsten Hopp |
48b30d |
! || top >= bot
|
|
Karsten Hopp |
48b30d |
! || bot > curbuf->b_ml.ml_line_count + 1)
|
|
Karsten Hopp |
48b30d |
return FALSE; /* rely on caller to do error messages */
|
|
Karsten Hopp |
48b30d |
|
|
Karsten Hopp |
48b30d |
if (top + 2 == bot)
|
|
Karsten Hopp |
48b30d |
*** ../vim-7.3.900/src/version.c 2013-04-15 15:40:08.000000000 +0200
|
|
Karsten Hopp |
48b30d |
--- src/version.c 2013-04-15 15:46:37.000000000 +0200
|
|
Karsten Hopp |
48b30d |
***************
|
|
Karsten Hopp |
48b30d |
*** 730,731 ****
|
|
Karsten Hopp |
48b30d |
--- 730,733 ----
|
|
Karsten Hopp |
48b30d |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
48b30d |
+ /**/
|
|
Karsten Hopp |
48b30d |
+ 901,
|
|
Karsten Hopp |
48b30d |
/**/
|
|
Karsten Hopp |
48b30d |
|
|
Karsten Hopp |
48b30d |
--
|
|
Karsten Hopp |
48b30d |
The CIA drives around in cars with the "Intel inside" logo.
|
|
Karsten Hopp |
48b30d |
|
|
Karsten Hopp |
48b30d |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
48b30d |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
48b30d |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
48b30d |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|