diff options
author | luukvbaal <31730729+luukvbaal@users.noreply.github.com> | 2022-11-08 00:21:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-08 07:21:22 +0800 |
commit | 8147d3df284a075f89746f9d5e948b5220c45f0b (patch) | |
tree | b132435018203f9a41dee15af9afcba0634c4526 /src/nvim/hardcopy.c | |
parent | 050b0e30b9d8a073a3b421a6cebd878226249ab6 (diff) | |
download | rneovim-8147d3df284a075f89746f9d5e948b5220c45f0b.tar.gz rneovim-8147d3df284a075f89746f9d5e948b5220c45f0b.tar.bz2 rneovim-8147d3df284a075f89746f9d5e948b5220c45f0b.zip |
vim-patch:9.0.0844: handling 'statusline' errors is spread out (#20992)
Problem: Handling 'statusline' errors is spread out.
Solution: Pass the option name to the lower levels so the option can be
reset there when an error is encountered. (Luuk van Baal,
closes vim/vim#11467)
https://github.com/vim/vim/commit/7b224fdf4a29f115567d4fc8629c1cef92d8444a
Diffstat (limited to 'src/nvim/hardcopy.c')
-rw-r--r-- | src/nvim/hardcopy.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/hardcopy.c b/src/nvim/hardcopy.c index 50af6dafe7..6c32e5355f 100644 --- a/src/nvim/hardcopy.c +++ b/src/nvim/hardcopy.c @@ -522,7 +522,6 @@ static void prt_header(prt_settings_T *const psettings, const int pagenum, const if (*p_header != NUL) { linenr_T tmp_lnum, tmp_topline, tmp_botline; - int use_sandbox = false; // Need to (temporarily) set current line number and first/last line // number on the 'window'. Since we don't know how long the page is, @@ -536,9 +535,8 @@ static void prt_header(prt_settings_T *const psettings, const int pagenum, const curwin->w_botline = lnum + 63; printer_page_num = pagenum; - use_sandbox = was_set_insecurely(curwin, "printheader", 0); build_stl_str_hl(curwin, (char *)tbuf, (size_t)width + IOSIZE, - (char *)p_header, use_sandbox, + (char *)p_header, "printheader", 0, ' ', width, NULL, NULL); // Reset line numbers |