File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2076,8 +2076,11 @@ get_lisp_indent(void)
20762076 amount += 2 ;
20772077 else
20782078 {
2079- that ++ ;
2080- amount ++ ;
2079+ if (* that != NUL )
2080+ {
2081+ that ++ ;
2082+ amount ++ ;
2083+ }
20812084 firsttry = amount ;
20822085
20832086 while (VIM_ISWHITE (* that ))
Original file line number Diff line number Diff line change 1- " Tests for 'lispwords' settings being global-local
1+ " Tests for 'lispwords' settings being global-local.
2+ " And other lisp indent stuff.
23
34set nocompatible viminfo += nviminfo
45
@@ -85,4 +86,13 @@ func Test_lisp_indent()
8586 set nolisp
8687endfunc
8788
89+ func Test_lisp_indent_works ()
90+ " This was reading beyond the end of the line
91+ new
92+ exe " norm a\t ü(\<CR> ="
93+ set lisp
94+ norm ==
95+ bwipe!
96+ endfunc
97+
8898" vim: shiftwidth = 2 sts = 2 expandtab
Original file line number Diff line number Diff line change @@ -734,6 +734,8 @@ static char *(features[]) =
734734
735735static int included_patches [] =
736736{ /* Add new patch number below this line */
737+ /**/
738+ 5151 ,
737739/**/
738740 5150 ,
739741/**/
You can’t perform that action at this time.
0 commit comments