diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-11-22 03:08:29 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-11-22 03:08:29 +0100 |
commit | f951416a8396a54bbbe21de1a8b16716428549f2 (patch) | |
tree | 2903bb024e534d4a4c5004beef72f4dc38583b29 /src/normal.c | |
parent | 2b84949ad8f247e5d142e2fb1371b3e37567977a (diff) | |
download | vim-git-f951416a8396a54bbbe21de1a8b16716428549f2.tar.gz |
patch 8.1.0542: shiftwidth() does not take 'vartabstop' into accountv8.1.0542
Problem: shiftwidth() does not take 'vartabstop' into account.
Solution: Use the cursor position or a position explicitly passed.
Also make >> and << work better with 'vartabstop'. (Christian
Brabandt)
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c index a0683b207..5310824ee 100644 --- a/src/normal.c +++ b/src/normal.c @@ -8143,6 +8143,7 @@ nv_g_cmd(cmdarg_T *cap) do i = gchar_cursor(); while (VIM_ISWHITE(i) && oneright() == OK); + curwin->w_valid &= ~VALID_WCOL; } curwin->w_set_curswant = TRUE; break; |