summaryrefslogtreecommitdiff
path: root/src/hardcopy.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-02-20 21:37:40 +0000
committerBram Moolenaar <Bram@vim.org>2006-02-20 21:37:40 +0000
commitfaa959a8700219bd1726943cbb956001b5f737e4 (patch)
tree3cb74926336d18b833091edeb49c267ed5813394 /src/hardcopy.c
parent70836c8ba83c180f978ed0ac92fb5ee78140a631 (diff)
downloadvim-faa959a8700219bd1726943cbb956001b5f737e4.zip
updated for version 7.0202
Diffstat (limited to 'src/hardcopy.c')
-rw-r--r--src/hardcopy.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/hardcopy.c b/src/hardcopy.c
index 5cfeb8bbc..61905b0a7 100644
--- a/src/hardcopy.c
+++ b/src/hardcopy.c
@@ -475,6 +475,7 @@ prt_header(psettings, pagenum, lnum)
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
@@ -490,8 +491,12 @@ prt_header(psettings, pagenum, lnum)
curwin->w_botline = lnum + 63;
printer_page_num = pagenum;
+# ifdef FEAT_EVAL
+ use_sandbox = was_set_insecurely((char_u *)"printheader");
+# endif
build_stl_str_hl(curwin, tbuf, (size_t)(width + IOSIZE),
- p_header, ' ', width, NULL);
+ p_header, use_sandbox,
+ ' ', width, NULL);
/* Reset line numbers */
curwin->w_cursor.lnum = tmp_lnum;