comparison src/testdir/test_number.vim @ 25642:b46214b82d6e v8.2.3357

patch 8.2.3357: crash when 'virtualedit' is set and window is narrow Commit: https://github.com/vim/vim/commit/02f8694a6bd116ab3316add4a7ea6735bf2e8839 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 17 22:14:29 2021 +0200 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 https://github.com/vim/vim/issues/8767)
author Bram Moolenaar <Bram@vim.org>
date Tue, 17 Aug 2021 22:15:03 +0200
parents 18a00b2b9c27
children c99005ffa8c3
comparison
equal deleted inserted replaced
25641:33b68bdf0bee 25642:b46214b82d6e
318 redraw! 318 redraw!
319 call assert_match('^\s\+0001 1000$', Screenline(1)) 319 call assert_match('^\s\+0001 1000$', Screenline(1))
320 bw! 320 bw!
321 endfunc 321 endfunc
322 322
323 " This used to cause a divide by zero
324 func Test_number_no_text_virtual_edit()
325 vnew
326 call setline(1, ['line one', 'line two'])
327 set number virtualedit=all
328 normal w
329 4wincmd |
330 normal j
331 bwipe!
332 endfunc
333
323 " vim: shiftwidth=2 sts=2 expandtab 334 " vim: shiftwidth=2 sts=2 expandtab