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