aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/hardcopy.c
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2020-11-24 07:10:55 +0100
committerGitHub <noreply@github.com>2020-11-24 07:10:55 +0100
commitdd876a15489beea14cd35417ca5147cb5316e9ce (patch)
tree091e9b1ddf9451609e513c7bdc2d20865a1e9086 /src/nvim/hardcopy.c
parent2d36b62eda16ae1cf370f4107530fa65d2b1bce4 (diff)
parent7eb0c16dc8433e27ce0c8573a80284ec044d5ef4 (diff)
downloadrneovim-dd876a15489beea14cd35417ca5147cb5316e9ce.tar.gz
rneovim-dd876a15489beea14cd35417ca5147cb5316e9ce.tar.bz2
rneovim-dd876a15489beea14cd35417ca5147cb5316e9ce.zip
Merge pull request #13322 from teto/remove_curwin
refactor: pass window to was_set_insecurely
Diffstat (limited to 'src/nvim/hardcopy.c')
-rw-r--r--src/nvim/hardcopy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/hardcopy.c b/src/nvim/hardcopy.c
index 4a64cc31b1..2c954008b3 100644
--- a/src/nvim/hardcopy.c
+++ b/src/nvim/hardcopy.c
@@ -546,7 +546,7 @@ static void prt_header(prt_settings_T *const psettings, const int pagenum,
curwin->w_botline = lnum + 63;
printer_page_num = pagenum;
- use_sandbox = was_set_insecurely((char_u *)"printheader", 0);
+ use_sandbox = was_set_insecurely(curwin, (char_u *)"printheader", 0);
build_stl_str_hl(curwin, tbuf, (size_t)width + IOSIZE,
p_header, use_sandbox,
' ', width, NULL, NULL);