mirror of
https://github.com/vim/vim.git
synced 2025-10-23 08:44:20 -04:00
patch 9.0.0844: handling 'statusline' errors is spread out
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)
This commit is contained in:
committed by
Bram Moolenaar
parent
1756f4b218
commit
7b224fdf4a
@@ -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;
|
||||
|
Reference in New Issue
Block a user