File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -582,6 +582,8 @@ cin_iscase(
582582 for (s += 4 ; * s ; ++ s )
583583 {
584584 s = cin_skipcomment (s );
585+ if (* s == NUL )
586+ break ;
585587 if (* s == ':' )
586588 {
587589 if (s [1 ] == ':' ) // skip over "::" for C++
Original file line number Diff line number Diff line change @@ -5251,4 +5251,13 @@ func Test_cindent_56()
52515251 enew ! | close
52525252endfunc
52535253
5254+ " this was going beyond the end of the line.
5255+ func Test_cindent_case ()
5256+ new
5257+ call setline (1 , " case x: // x" )
5258+ set cindent
5259+ norm! f :a:
5260+ bwipe!
5261+ endfunc
5262+
52545263" vim: shiftwidth = 2 sts = 2 expandtab
Original file line number Diff line number Diff line change @@ -742,6 +742,8 @@ static char *(features[]) =
742742
743743static int included_patches [] =
744744{ /* Add new patch number below this line */
745+ /**/
746+ 112 ,
745747/**/
746748 111 ,
747749/**/
You can’t perform that action at this time.
0 commit comments