aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/screen.c
diff options
context:
space:
mode:
authorMatthieu Coudron <mcoudron@hotmail.com>2020-11-18 22:52:49 +0100
committerMatthieu Coudron <mcoudron@hotmail.com>2020-11-23 21:06:56 +0100
commit4f1fc0f6d514980700152b7c05e5c92ec379f0d7 (patch)
tree56488620cbef1d2d13e7c9866364ea1d7292da17 /src/nvim/screen.c
parent7dfeadb0fcbcedeafc357e60f0b7b2b8916afeaf (diff)
downloadrneovim-4f1fc0f6d514980700152b7c05e5c92ec379f0d7.tar.gz
rneovim-4f1fc0f6d514980700152b7c05e5c92ec379f0d7.tar.bz2
rneovim-4f1fc0f6d514980700152b7c05e5c92ec379f0d7.zip
refactor: pass window to was_set_insecurely
working on get_foldtext and wanted to get rid of the curwin backup/restore. Turns out it's not possible else f_foldtext is run on the same window. Kept the cleanup anyway.
Diffstat (limited to 'src/nvim/screen.c')
-rw-r--r--src/nvim/screen.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index 5f09912116..20fec490a9 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -5205,7 +5205,7 @@ win_redr_custom (
fillchar = ' ';
attr = HL_ATTR(HLF_TPF);
maxwidth = Columns;
- use_sandbox = was_set_insecurely((char_u *)"tabline", 0);
+ use_sandbox = was_set_insecurely(wp, (char_u *)"tabline", 0);
} else {
row = W_ENDROW(wp);
fillchar = fillchar_status(&attr, wp);
@@ -5236,14 +5236,14 @@ win_redr_custom (
attr = HL_ATTR(HLF_MSG);
}
- use_sandbox = was_set_insecurely((char_u *)"rulerformat", 0);
+ use_sandbox = was_set_insecurely(wp, (char_u *)"rulerformat", 0);
} else {
if (*wp->w_p_stl != NUL)
stl = wp->w_p_stl;
else
stl = p_stl;
- use_sandbox = was_set_insecurely((char_u *)"statusline",
- *wp->w_p_stl == NUL ? 0 : OPT_LOCAL);
+ use_sandbox = was_set_insecurely(
+ wp, (char_u *)"statusline", *wp->w_p_stl == NUL ? 0 : OPT_LOCAL);
}
col += wp->w_wincol;