view src/testdir/test_comparators.vim @ 31073:df4957f0ccb5 v9.0.0871

patch 9.0.0871: using freed memory when clearing augroup at more prompt Commit: https://github.com/vim/vim/commit/3b014befa006b7224a84d7d58d9603fc261f34cd Author: Bram Moolenaar <Bram@vim.org> Date: Sun Nov 13 17:53:46 2022 +0000 patch 9.0.0871: using freed memory when clearing augroup at more prompt Problem: Using freed memory when clearing augroup at more prompt. Solution: Delay clearing augroup until it's safe. (closes https://github.com/vim/vim/issues/11441)
author Bram Moolenaar <Bram@vim.org>
date Sun, 13 Nov 2022 19:00:05 +0100
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