mirror of
https://github.com/vim/vim.git
synced 2025-10-01 04:54:07 -04:00
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 #8767)
This commit is contained in:
@@ -161,7 +161,8 @@ coladvance2(
|
||||
if (finetune
|
||||
&& curwin->w_p_wrap
|
||||
&& curwin->w_width != 0
|
||||
&& wcol >= (colnr_T)width)
|
||||
&& wcol >= (colnr_T)width
|
||||
&& width > 0)
|
||||
{
|
||||
csize = linetabsize(line);
|
||||
if (csize > 0)
|
||||
|
Reference in New Issue
Block a user