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.
diff --git a/src/ex_getln.c b/src/ex_getln.c
index cdd59de..7ec47c7 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -2280,7 +2280,7 @@
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 @@
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 @@
/*
* 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 "^".
*/