summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-01-24 17:48:36 +0100
committerBram Moolenaar <Bram@vim.org>2017-01-24 17:48:36 +0100
commit24a2d416ec261829ff7fd29f7b66739c96dd6513 (patch)
tree39428e4d6a0c7ddefe0d42fa8700c0f75caca9d6
parentabbc448bc09a292ec1263ffe69b4cb3d1c57f020 (diff)
downloadvim-git-24a2d416ec261829ff7fd29f7b66739c96dd6513.tar.gz
patch 8.0.0229: local 'formatprg' option value leaksv8.0.0229
Problem: When freeing a buffer the local value of the 'formatprg' option is not cleared. Solution: Add missing change.
-rw-r--r--src/buffer.c1
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index b79e277a0..b2c914d7a 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2153,6 +2153,7 @@ free_buf_options(
#if defined(FEAT_CRYPT)
clear_string_option(&buf->b_p_cm);
#endif
+ clear_string_option(&buf->b_p_fp);
#if defined(FEAT_EVAL)
clear_string_option(&buf->b_p_fex);
#endif
diff --git a/src/version.c b/src/version.c
index 6d3b8483f..829b3b94c 100644
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 229,
+/**/
228,
/**/
227,