diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2019-01-23 01:41:00 +0100 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2019-01-26 14:45:47 +0100 |
commit | 352811fe5ff900e8d95695477dff821a5b860912 (patch) | |
tree | 94e91687fada2afefa3eee857473af5eb6a3f03f /src/nvim/buffer.c | |
parent | ec5a4d862d71729569acf4afac4c371a09edc314 (diff) | |
download | rneovim-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/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index c15a6f1330..96d0eaf815 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -3676,7 +3676,7 @@ int build_stl_str_hl( { // In list mode virtcol needs to be recomputed colnr_T virtcol = wp->w_virtcol; - if (wp->w_p_list && lcs_tab1 == NUL) { + if (wp->w_p_list && wp->w_p_lcs_chars.tab1 == NUL) { wp->w_p_list = FALSE; getvcol(wp, &wp->w_cursor, NULL, &virtcol, NULL); wp->w_p_list = TRUE; |