aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2019-01-23 01:41:00 +0100
committerMarco Hinz <mh.codebro@gmail.com>2019-01-26 14:45:47 +0100
commit352811fe5ff900e8d95695477dff821a5b860912 (patch)
tree94e91687fada2afefa3eee857473af5eb6a3f03f /src/nvim/eval.c
parentec5a4d862d71729569acf4afac4c371a09edc314 (diff)
downloadrneovim-352811fe5ff900e8d95695477dff821a5b860912.tar.gz
rneovim-352811fe5ff900e8d95695477dff821a5b860912.tar.bz2
rneovim-352811fe5ff900e8d95695477dff821a5b860912.zip
options: make 'fillchars'/'listchars' local to window
Using 'listchars' is a nice way to highlight tabs that were included by accident for buffers that set 'expandtab'. But maybe one does not want this for buffers that set 'noexpandtab', so now one can use: autocmd FileType go let &l:listchars .= ',tab: '
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 1c6fb5d2f8..993edec5ef 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -16425,7 +16425,9 @@ static void f_synconcealed(typval_T *argvars, typval_T *rettv, FunPtr fptr)
if ((syntax_flags & HL_CONCEAL) && curwin->w_p_cole < 3) {
cchar = syn_get_sub_char();
if (cchar == NUL && curwin->w_p_cole == 1) {
- cchar = (lcs_conceal == NUL) ? ' ' : lcs_conceal;
+ cchar = (curwin->w_p_lcs_chars.conceal == NUL)
+ ? ' '
+ : curwin->w_p_lcs_chars.conceal;
}
if (cchar != NUL) {
utf_char2bytes(cchar, str);