0
0
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:
Bram Moolenaar
2022-06-26 12:59:02 +01:00
parent 8a3b805c6c
commit 0971c7a4e5
2 changed files with 3 additions and 1 deletions

View File

@@ -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);