1
0
forked from aniani/vim

updated for version 7.4.069

Problem:    Cannot right shift lines starting with #.
Solution:   Allow the right shift when 'cino' contains #N with N > 0.
            (Christian Brabandt)
            Refactor parsing 'cino', store the values in the buffer.
This commit is contained in:
Bram Moolenaar
2013-11-05 07:13:41 +01:00
parent 0958e0fbe7
commit 6bcbcc59be
13 changed files with 479 additions and 430 deletions

View File

@@ -2280,7 +2280,7 @@ getexmodeline(promptc, cookie, indent)
if (c1 == Ctrl_T)
{
long sw = get_sw_value();
long sw = get_sw_value(curbuf);
p = (char_u *)line_ga.ga_data;
p[line_ga.ga_len] = NUL;
@@ -2337,7 +2337,7 @@ redraw:
p[line_ga.ga_len] = NUL;
indent = get_indent_str(p, 8);
--indent;
indent -= indent % get_sw_value();
indent -= indent % get_sw_value(curbuf);
}
while (get_indent_str(p, 8) > indent)
{
@@ -4178,7 +4178,7 @@ expand_showtail(xp)
/*
* Prepare a string for expansion.
* When expanding file names: The string will be used with expand_wildcards().
* Copy the file name into allocated memory and add a '*' at the end.
* Copy "fname[len]" into allocated memory and add a '*' at the end.
* When expanding other names: The string will be used with regcomp(). Copy
* the name into allocated memory and prepend "^".
*/