Christian Brabandt wrote: > Bram, > I have lately worked with very narrow windows¹, and I noticed some > problems (and even crashes). > > 1) Setting the foldcolumn might actually fill the complete window. E.g. > can set fdc=12 and make the current window exactly 12 chars wide. So > one has a window, that does not draw any text. Patch > check_fdc_width.diff fixes that > 2) for very narrow window, nv_screengo might actually crash with a > floating point exception. This is caused be width1 or width2 being > zero. Additionally, it might happen, that a tab might span several > screen lines and then using gk and gj do not work as expected. Patch > screengo.diff fixes those two errors.
This patch causes test 39 to fail. > 3) I got a crash in windgoto(), because screen_cur_col was negative. > Unfortunately I couldn't reproduce the problem and therefore I do not > know, how screen_cur_col could become negative (and I do not see from > the code how that could happen). So no fix for that problem. > > > ¹) basically caused by trying to fix the problem reported by Dominique > when the cursor movement was wrong. While fixing that, I noticed some > more problems, that I report here. I'll post 2 patches for fixing those > problems later, after I have tested them some more. -- hundred-and-one symptoms of being an internet addict: 131. You challenge authority and society by portnuking people /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
