From f951416a8396a54bbbe21de1a8b16716428549f2 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 22 Nov 2018 03:08:29 +0100 Subject: patch 8.1.0542: shiftwidth() does not take 'vartabstop' into account 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) --- src/normal.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/normal.c') 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; -- cgit v1.2.1