mirror of
https://github.com/neovim/neovim.git
synced 2025-09-10 13:28:19 +00:00
vim-patch:8.2.3357: crash when 'virtualedit' is set and window is narrow
Problem: Crash when 'virtualedit' is set and window is narrow. ()
Solution: Check that width is not zero. (closes vim/vim#8767)
02f8694a6b
This commit is contained in:
@@ -130,7 +130,8 @@ static int coladvance2(
|
||||
if (finetune
|
||||
&& curwin->w_p_wrap
|
||||
&& curwin->w_width_inner != 0
|
||||
&& wcol >= (colnr_T)width) {
|
||||
&& wcol >= (colnr_T)width
|
||||
&& width > 0) {
|
||||
csize = linetabsize(line);
|
||||
if (csize > 0)
|
||||
csize--;
|
||||
|
Reference in New Issue
Block a user