Patch 8.2.5120
Problem:    Searching for quotes may go over the end of the line.
Solution:   Check for running into the NUL.
Files:      src/textobject.c


*** ../vim-8.2.5119/src/textobject.c    2022-05-24 11:49:27.910175908 +0100
--- src/textobject.c    2022-06-18 11:08:46.904519277 +0100
***************
*** 1798,1808 ****
--- 1798,1814 ----
  
        // Find out if we have a quote in the selection.
        while (i <= col_end)
+       {
+           // check for going over the end of the line, which can happen if
+           // the line was changed after the Visual area was selected.
+           if (line[i] == NUL)
+               break;
            if (line[i++] == quotechar)
            {
                selected_quote = TRUE;
                break;
            }
+       }
      }
  
      if (!vis_empty && line[col_start] == quotechar)
*** ../vim-8.2.5119/src/version.c       2022-06-17 21:27:32.731699915 +0100
--- src/version.c       2022-06-18 11:21:00.410997833 +0100
***************
*** 736,737 ****
--- 736,739 ----
  {   /* Add new patch number below this line */
+ /**/
+     5120,
  /**/

-- 
"I thought there was something different.  You no longer smell
of excrement.  It suits you!"  --  the Outpost

 /// 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/20220618102321.6C4B31C1525%40moolenaar.net.

Raspunde prin e-mail lui