mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 8.2.5162: reading before the start of the line with BS in Replace mode
Problem: Reading before the start of the line with BS in Replace mode. Solution: Check the cursor column is more than zero.
This commit is contained in:
@@ -4183,7 +4183,7 @@ ins_bs(
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// delete characters until we are at or before want_vcol
|
// delete characters until we are at or before want_vcol
|
||||||
while (vcol > want_vcol
|
while (vcol > want_vcol && curwin->w_cursor.col > 0
|
||||||
&& (cc = *(ml_get_cursor() - 1), VIM_ISWHITE(cc)))
|
&& (cc = *(ml_get_cursor() - 1), VIM_ISWHITE(cc)))
|
||||||
ins_bs_one(&vcol);
|
ins_bs_one(&vcol);
|
||||||
|
|
||||||
|
@@ -735,6 +735,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
5162,
|
||||||
/**/
|
/**/
|
||||||
5161,
|
5161,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user