diff src/buffer.c @ 11063:e71d3bdf3bc3 v8.0.0420

patch 8.0.0420: text garbled when the system encoding differs from 'encoding' commit https://github.com/vim/vim/commit/2c7292dc5bbf155fe2192d417363b8c085759cad Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 5 17:43:31 2017 +0100 patch 8.0.0420: text garbled when the system encoding differs from 'encoding' Problem: When running :make the output may be in the system encoding, different from 'encoding'. Solution: Add the 'makeencoding' option. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Sun, 05 Mar 2017 17:45:05 +0100
parents 8ff62b4cffae
children 778c10516955
line wrap: on
line diff
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2255,6 +2255,9 @@ free_buf_options(
     clear_string_option(&buf->b_p_lw);
 #endif
     clear_string_option(&buf->b_p_bkc);
+#ifdef FEAT_MBYTE
+    clear_string_option(&buf->b_p_menc);
+#endif
 }
 
 /*