summaryrefslogtreecommitdiffstats
path: root/src/hardcopy.c
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2022-11-07 12:16:51 +0000
committerBram Moolenaar <Bram@vim.org>2022-11-07 12:16:51 +0000
commit7b224fdf4a29f115567d4fc8629c1cef92d8444a (patch)
tree5f610db7cd966ed44e3dd29dd41223f3d0176403 /src/hardcopy.c
parent1756f4b21837e8596241ecd668f4abbbab4bc7e5 (diff)
patch 9.0.0844: handling 'statusline' errors is spread outv9.0.0844
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 #11467)
Diffstat (limited to 'src/hardcopy.c')
-rw-r--r--src/hardcopy.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/hardcopy.c b/src/hardcopy.c
index dd1f2e071e..9d114c587e 100644
--- a/src/hardcopy.c
+++ b/src/hardcopy.c
@@ -471,7 +471,6 @@ prt_header(
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
@@ -487,12 +486,8 @@ prt_header(
curwin->w_botline = lnum + 63;
printer_page_num = pagenum;
-# ifdef FEAT_EVAL
- use_sandbox = was_set_insecurely((char_u *)"printheader", 0);
-# endif
- build_stl_str_hl(curwin, tbuf, (size_t)(width + IOSIZE),
- p_header, use_sandbox,
- ' ', width, NULL, NULL);
+ build_stl_str_hl(curwin, tbuf, (size_t)(width + IOSIZE), p_header,
+ (char_u *)"printheader", 0, ' ', width, NULL, NULL);
// Reset line numbers
curwin->w_cursor.lnum = tmp_lnum;