forked from aniani/vim
updated for version 7.3.901
Problem: Outdated comment, ugly condition. Solution: Update a few comments, break line.
This commit is contained in:
@@ -444,7 +444,7 @@ flush_buffers(flush_typeahead)
|
|||||||
typebuf.tb_off = MAXMAPLEN;
|
typebuf.tb_off = MAXMAPLEN;
|
||||||
typebuf.tb_len = 0;
|
typebuf.tb_len = 0;
|
||||||
}
|
}
|
||||||
else /* remove mapped characters only */
|
else /* remove mapped characters at the start only */
|
||||||
{
|
{
|
||||||
typebuf.tb_off += typebuf.tb_maplen;
|
typebuf.tb_off += typebuf.tb_maplen;
|
||||||
typebuf.tb_len -= typebuf.tb_maplen;
|
typebuf.tb_len -= typebuf.tb_maplen;
|
||||||
|
@@ -5054,7 +5054,6 @@ vim_fnamencmp(x, y, len)
|
|||||||
int cx = NUL;
|
int cx = NUL;
|
||||||
int cy = NUL;
|
int cy = NUL;
|
||||||
|
|
||||||
/* TODO: multi-byte characters. */
|
|
||||||
while (len > 0)
|
while (len > 0)
|
||||||
{
|
{
|
||||||
cx = PTR2CHAR(px);
|
cx = PTR2CHAR(px);
|
||||||
|
@@ -216,6 +216,7 @@ u_check(int newhead_may_be_NULL)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Save the current line for both the "u" and "U" command.
|
* Save the current line for both the "u" and "U" command.
|
||||||
|
* Careful: may trigger autocommands that reload the buffer.
|
||||||
* Returns OK or FAIL.
|
* Returns OK or FAIL.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
@@ -238,8 +239,9 @@ u_save(top, bot)
|
|||||||
if (undo_off)
|
if (undo_off)
|
||||||
return OK;
|
return OK;
|
||||||
|
|
||||||
if (top > curbuf->b_ml.ml_line_count ||
|
if (top > curbuf->b_ml.ml_line_count
|
||||||
top >= bot || bot > curbuf->b_ml.ml_line_count + 1)
|
|| top >= bot
|
||||||
|
|| bot > curbuf->b_ml.ml_line_count + 1)
|
||||||
return FALSE; /* rely on caller to do error messages */
|
return FALSE; /* rely on caller to do error messages */
|
||||||
|
|
||||||
if (top + 2 == bot)
|
if (top + 2 == bot)
|
||||||
|
@@ -728,6 +728,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
901,
|
||||||
/**/
|
/**/
|
||||||
900,
|
900,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user