aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorraichoo <raichoo@googlemail.com>2017-03-11 16:43:15 +0100
committerraichoo <raichoo@googlemail.com>2017-03-19 21:14:11 +0100
commit99f2dc1341c8501290e3a0b297e1700f74fd17a3 (patch)
treedce24f4c069231a020c17768b5b60abf07c1daa5 /src/nvim/buffer.c
parent0f5c3f111ab130f5cbb5943082ea5e877c1c2f4c (diff)
downloadrneovim-99f2dc1341c8501290e3a0b297e1700f74fd17a3.tar.gz
rneovim-99f2dc1341c8501290e3a0b297e1700f74fd17a3.tar.bz2
rneovim-99f2dc1341c8501290e3a0b297e1700f74fd17a3.zip
vim-patch:8.0.0229
Problem: When freeing a buffer the local value of the 'formatprg' option is not cleared. Solution: Add missing change. https://github.com/vim/vim/commit/24a2d416ec261829ff7fd29f7b66739c96dd6513
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index f97f05e697..ab45008962 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -1679,6 +1679,7 @@ void free_buf_options(buf_T *buf, int free_p_ff)
clear_string_option(&buf->b_p_inex);
clear_string_option(&buf->b_p_inde);
clear_string_option(&buf->b_p_indk);
+ clear_string_option(&buf->b_p_fp);
clear_string_option(&buf->b_p_fex);
clear_string_option(&buf->b_p_kp);
clear_string_option(&buf->b_p_mps);