diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-03-28 13:40:34 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-28 13:40:34 -0400 |
| commit | 63c2a7af2da3998167c7b1b06fb461b20b144c78 (patch) | |
| tree | 77aa1b22e65a65c62fa4a062bb88945e02f5d5ca /src/nvim/message.c | |
| parent | 6d4a922e07e857b46d882ea96decce7c7c6e2a30 (diff) | |
| parent | a70d904ad0e2037c7fb2ae10a20f840af3544496 (diff) | |
| download | rneovim-63c2a7af2da3998167c7b1b06fb461b20b144c78.tar.gz rneovim-63c2a7af2da3998167c7b1b06fb461b20b144c78.tar.bz2 rneovim-63c2a7af2da3998167c7b1b06fb461b20b144c78.zip | |
Merge pull request #13851 from VVKot/vim-8.1.0105
vim-patch:8.1.{0105,0114,0116,0126,0138,0154,0479,0542,0936}
Diffstat (limited to 'src/nvim/message.c')
| -rw-r--r-- | src/nvim/message.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index 71cb345878..cdac4b602a 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -1758,7 +1758,9 @@ void msg_prt_line(char_u *s, int list) c = *s++; if (c == TAB && (!list || curwin->w_p_lcs_chars.tab1)) { // tab amount depends on current column - n_extra = curbuf->b_p_ts - col % curbuf->b_p_ts - 1; + n_extra = tabstop_padding(col, + curbuf->b_p_ts, + curbuf->b_p_vts_array) - 1; if (!list) { c = ' '; c_extra = ' '; |