Patch 8.2.5162
Problem:    Reading before the start of the line with BS in Replace mode.
Solution:   Check the cursor column is more than zero.
Files:      src/edit.c


*** ../vim-8.2.5161/src/edit.c  2022-06-04 22:15:48.792982835 +0100
--- src/edit.c  2022-06-26 12:58:24.073948031 +0100
***************
*** 4183,4189 ****
  #endif
  
            // delete characters until we are at or before want_vcol
!           while (vcol > want_vcol
                    && (cc = *(ml_get_cursor() - 1), VIM_ISWHITE(cc)))
                ins_bs_one(&vcol);
  
--- 4183,4189 ----
  #endif
  
            // delete characters until we are at or before want_vcol
!           while (vcol > want_vcol && curwin->w_cursor.col > 0
                    && (cc = *(ml_get_cursor() - 1), VIM_ISWHITE(cc)))
                ins_bs_one(&vcol);
  
*** ../vim-8.2.5161/src/version.c       2022-06-26 11:17:02.316354675 +0100
--- src/version.c       2022-06-26 12:57:33.633783298 +0100
***************
*** 737,738 ****
--- 737,740 ----
  {   /* Add new patch number below this line */
+ /**/
+     5162,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
5. You find yourself brainstorming for new subjects to search.

 /// 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/20220626115939.647571C4808%40moolenaar.net.

Raspunde prin e-mail lui