updated for version 7.1-151
diff --git a/src/edit.c b/src/edit.c
index b1a13a9..c16dadd 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -2111,7 +2111,7 @@
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 @@
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 d365e85..be8df81 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 151,
+/**/
150,
/**/
149,