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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220618115200.E13171C12E9%40moolenaar.net.

Raspunde prin e-mail lui