Mercurial > vim
view src/testdir/test_scroll_opt.vim @ 25511:a6eea433586b v8.2.3292
patch 8.2.3292: underscore in very magic pattern causes a hang
Commit: https://github.com/vim/vim/commit/bc67e5a0a494f5fc48e872d747371e31a782d171
Author: Christian Brabandt <cb@256bit.org>
Date: Thu Aug 5 15:24:59 2021 +0200
patch 8.2.3292: underscore in very magic pattern causes a hang
Problem: Underscore in very magic pattern causes a hang. Pattern with \V
are case sensitive. (Yutao Yuan)
Solution: Adjust condition for magicness and advance pointer. (Christian
Brabandt, closes #8707, closes #8704, closes #8705)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 05 Aug 2021 15:30:04 +0200 |
parents | 08940efa6b4e |
children | 6c6ac189a05f |
line wrap: on
line source
" Test for reset 'scroll' func Test_reset_scroll() let scr = &l:scroll setlocal scroll=1 setlocal scroll& call assert_equal(scr, &l:scroll) setlocal scroll=1 setlocal scroll=0 call assert_equal(scr, &l:scroll) try execute 'setlocal scroll=' . (winheight(0) + 1) " not reached call assert_false(1) catch call assert_exception('E49:') endtry split let scr = &l:scroll setlocal scroll=1 setlocal scroll& call assert_equal(scr, &l:scroll) setlocal scroll=1 setlocal scroll=0 call assert_equal(scr, &l:scroll) quit! endfunc " vim: shiftwidth=2 sts=2 expandtab