diff options
author | Marco Hinz <mh.codebro+github@gmail.com> | 2019-01-28 00:45:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-28 00:45:59 +0100 |
commit | 28f87c505d895df8d00a919f6324f5305f02166e (patch) | |
tree | 3a642b40f51833605b14a0184d968dae4bb2cdfe /src/nvim/indent.c | |
parent | 7e6980a161011ab58c69ee67f35522fd86e6cb25 (diff) | |
parent | 88b0899eb40581ad5b8071823594852a7cdf2043 (diff) | |
download | rneovim-28f87c505d895df8d00a919f6324f5305f02166e.tar.gz rneovim-28f87c505d895df8d00a919f6324f5305f02166e.tar.bz2 rneovim-28f87c505d895df8d00a919f6324f5305f02166e.zip |
Merge #9539 "options: make 'listchars' and 'fillchars' local to window"
Diffstat (limited to 'src/nvim/indent.c')
-rw-r--r-- | src/nvim/indent.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/indent.c b/src/nvim/indent.c index 9305e85f38..8e20aa5be4 100644 --- a/src/nvim/indent.c +++ b/src/nvim/indent.c @@ -61,7 +61,8 @@ 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 |