Skip to content

Commit

Permalink
patch 8.2.5162: reading before the start of the line with BS in Repla…
Browse files Browse the repository at this point in the history
…ce mode

Problem:    Reading before the start of the line with BS in Replace mode.
Solution:   Check the cursor column is more than zero.
  • Loading branch information
brammool committed Jun 26, 2022
1 parent 8a3b805 commit 0971c7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/edit.c
Expand Up @@ -4183,7 +4183,7 @@ ins_bs(
#endif

// 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)))
ins_bs_one(&vcol);

Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -735,6 +735,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
5162,
/**/
5161,
/**/
Expand Down

0 comments on commit 0971c7a

Please sign in to comment.