Mercurial > vim
view src/testdir/test_comparators.vim @ 29191:0af5fe160e4e v8.2.5115
patch 8.2.5115: search timeout is overrun with some patterns
Commit: https://github.com/vim/vim/commit/616592e0816d2d9f893fcd95e3e1e0fbc5893168
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 17 15:17:10 2022 +0100
patch 8.2.5115: search timeout is overrun with some patterns
Problem: Search timeout is overrun with some patterns.
Solution: Check for timeout in more places. Make the flag volatile and
atomic. Use assert_inrange() to see what happened.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 17 Jun 2022 16:30:06 +0200 |
parents | 08940efa6b4e |
children |
line wrap: on
line source
" Test for comparators function Test_Comparators() try let oldisident=&isident set isident+=# call assert_equal(1, 1 is#1) finally let &isident=oldisident endtry endfunction " vim: shiftwidth=2 sts=2 expandtab