Mercurial > vim
diff src/option.c @ 18199:e2be5a6485f5 v8.1.2094
patch 8.1.2094: the fileio.c file is too big
Commit: https://github.com/vim/vim/commit/473952e85286eb9c6098801f1819981ba61ad153
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 28 16:30:04 2019 +0200
patch 8.1.2094: the fileio.c file is too big
Problem: The fileio.c file is too big.
Solution: Move buf_write() to bufwrite.c. (Yegappan Lakshmanan,
closes #4990)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 28 Sep 2019 16:45:04 +0200 |
parents | c81370b3ede4 |
children | e0ec4cd7a865 |
line wrap: on
line diff
--- a/src/option.c +++ b/src/option.c @@ -5530,7 +5530,7 @@ win_copy_options(win_T *wp_from, win_T * * After copying window options: update variables depending on options. */ void -after_copy_winopt(win_T *wp) +after_copy_winopt(win_T *wp UNUSED) { #ifdef FEAT_LINEBREAK briopt_check(wp); @@ -5852,6 +5852,8 @@ buf_copy_options(buf_T *buf, int flags) #endif buf->b_p_fo = vim_strsave(p_fo); buf->b_p_flp = vim_strsave(p_flp); + // NOTE: Valgrind may report a bogus memory leak for 'nrformats' + // when it is set to 8 bytes in defaults.vim. buf->b_p_nf = vim_strsave(p_nf); buf->b_p_mps = vim_strsave(p_mps); #ifdef FEAT_SMARTINDENT