From 352811fe5ff900e8d95695477dff821a5b860912 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Wed, 23 Jan 2019 01:41:00 +0100 Subject: 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: ' --- src/nvim/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/buffer.c') 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; -- cgit From 2418aa3a4ac8f560373b940dbe0443fc79ab65ad Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Fri, 25 Jan 2019 16:31:59 +0100 Subject: linter: fix issues --- src/nvim/buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/buffer.c') diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 96d0eaf815..048fde07e7 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -3677,9 +3677,9 @@ int build_stl_str_hl( // In list mode virtcol needs to be recomputed colnr_T virtcol = wp->w_virtcol; if (wp->w_p_list && wp->w_p_lcs_chars.tab1 == NUL) { - wp->w_p_list = FALSE; + wp->w_p_list = false; getvcol(wp, &wp->w_cursor, NULL, &virtcol, NULL); - wp->w_p_list = TRUE; + wp->w_p_list = true; } ++virtcol; // Don't display %V if it's the same as %c. -- cgit