aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/indent.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/indent.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/indent.c')
-rw-r--r--src/nvim/indent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/indent.c b/src/nvim/indent.c
index 19456da45c..9e13b8a7f9 100644
--- a/src/nvim/indent.c
+++ b/src/nvim/indent.c
@@ -61,7 +61,7 @@ int get_indent_str(char_u *ptr, int ts, int list)
for (; *ptr; ++ptr) {
// Count a tab for what it is worth.
if (*ptr == TAB) {
- if (!list || lcs_tab1) { // count a tab for what it is worth
+ if (!list || curwin->w_p_lcs_chars.tab1) { // count a tab for what it is worth
count += ts - (count % ts);
} else {
// In list mode, when tab is not set, count screen char width