summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-11-08 12:04:26 +0000
committerBram Moolenaar <Bram@vim.org>2007-11-08 12:04:26 +0000
commite40e57c514158e118b0923a9fe57e36cca0b5208 (patch)
tree002fc967421f1dd02f0a1807010a18309cb701d0
parentcdfd3e424a0634fe3133b94c2e75737f371c08fc (diff)
downloadvim-git-e40e57c514158e118b0923a9fe57e36cca0b5208.tar.gz
updated for version 7.1-151v7.1.151
-rw-r--r--src/edit.c4
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/edit.c b/src/edit.c
index b1a13a9e1..c16daddde 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -2111,7 +2111,7 @@ ins_compl_add_infercase(str, len, icase, fname, dir, flags)
int has_lower = FALSE;
int was_letter = FALSE;
- if (p_ic && curbuf->b_p_inf)
+ if (p_ic && curbuf->b_p_inf && len > 0)
{
/* Infer case of completed part. */
@@ -2225,7 +2225,7 @@ ins_compl_add_infercase(str, len, icase, fname, dir, flags)
wca[i] = MB_TOUPPER(wca[i]);
}
- /*
+ /*
* Generate encoding specific output from wide character array.
* Multi-byte characters can occupy up to five bytes more than
* ASCII characters, and we also need one byte for NUL, so stay
diff --git a/src/version.c b/src/version.c
index d365e8591..be8df81da 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 151,
+/**/
150,
/**/
149,