mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
vim-patch:8.2.5162: reading before the start of the line with BS in Replace mode (#19241)
Problem: Reading before the start of the line with BS in Replace mode.
Solution: Check the cursor column is more than zero.
0971c7a4e5
This commit is contained in:
@@ -8373,7 +8373,7 @@ static bool ins_bs(int c, int mode, int *inserted_space_p)
|
||||
}
|
||||
|
||||
// delete characters until we are at or before want_vcol
|
||||
while (vcol > want_vcol
|
||||
while (vcol > want_vcol && curwin->w_cursor.col > 0
|
||||
&& (cc = *(get_cursor_pos_ptr() - 1), ascii_iswhite(cc))) {
|
||||
ins_bs_one(&vcol);
|
||||
}
|
||||
|
Reference in New Issue
Block a user