Patch 8.2.5122
Problem: Lisp indenting my run over the end of the line.
Solution: Check for NUL earlier.
Files: src/indent.c, src/testdir/test_indent.vim
*** ../vim-8.2.5121/src/indent.c 2022-06-16 12:10:42.987386331 +0100
--- src/indent.c 2022-06-18 12:39:03.896044527 +0100
***************
*** 2029,2034 ****
--- 2029,2036 ----
}
}
}
+ if (*that == NUL)
+ break;
}
if (*that == '(' || *that == '[')
++parencount;
*** ../vim-8.2.5121/src/testdir/test_indent.vim 2022-04-19 18:28:41.395860397 +0100
--- src/testdir/test_indent.vim 2022-06-18 12:34:10.124677404 +0100
***************
*** 144,149 ****
--- 144,159 ----
close!
endfunc
+ func Test_lisp_indent_quoted()
+ " This was going past the end of the line
+ new
+ setlocal lisp autoindent
+ call setline(1, ['"[', '='])
+ normal Gvk=
+
+ bwipe!
+ endfunc
+
" Test for setting the 'indentexpr' from a modeline
func Test_modeline_indent_expr()
let modeline = &modeline
*** ../vim-8.2.5121/src/version.c 2022-06-18 11:54:44.343931348 +0100
--- src/version.c 2022-06-18 12:43:10.291614155 +0100
***************
*** 736,737 ****
--- 736,739 ----
{ /* Add new patch number below this line */
+ /**/
+ 5122,
/**/
--
./configure
Checking whether build environment is sane ...
build environment is grinning and holding a spatula. Guess not.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///