summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-11-22 03:08:29 +0100
committerBram Moolenaar <Bram@vim.org>2018-11-22 03:08:29 +0100
commitf951416a8396a54bbbe21de1a8b16716428549f2 (patch)
tree2903bb024e534d4a4c5004beef72f4dc38583b29 /src/normal.c
parent2b84949ad8f247e5d142e2fb1371b3e37567977a (diff)
downloadvim-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.c1
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;