mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user