1
0
forked from aniani/vim

updated for version 7.3.629

Problem:    There is no way to make 'shiftwidth' follow 'tabstop'.
Solution:   When 'shiftwidth' is zero use the value of 'tabstop'. (Christian
            Brabandt)
This commit is contained in:
Bram Moolenaar
2012-08-08 18:01:05 +02:00
parent b02612b641
commit 14f2474147
8 changed files with 46 additions and 26 deletions

View File

@@ -2268,10 +2268,12 @@ getexmodeline(promptc, cookie, indent)
if (c1 == Ctrl_T)
{
long sw = get_sw_value();
p = (char_u *)line_ga.ga_data;
p[line_ga.ga_len] = NUL;
indent = get_indent_str(p, 8);
indent += curbuf->b_p_sw - indent % curbuf->b_p_sw;
indent += sw - indent % sw;
add_indent:
while (get_indent_str(p, 8) < indent)
{
@@ -2323,7 +2325,7 @@ redraw:
p[line_ga.ga_len] = NUL;
indent = get_indent_str(p, 8);
--indent;
indent -= indent % curbuf->b_p_sw;
indent -= indent % get_sw_value();
}
while (get_indent_str(p, 8) > indent)
{