Mercurial > vim
view src/testdir/test_comparators.vim @ 27742:3b2c75c0a7ab v8.2.4397
patch 8.2.4397: crash when using many composing characters in error message
Commit: https://github.com/vim/vim/commit/34f8117dec685ace52cd9e578e2729db278163fc
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Feb 16 12:16:19 2022 +0000
patch 8.2.4397: crash when using many composing characters in error message
Problem: Crash when using many composing characters in error message.
Solution: Use mb_cptr2char_adv() instead of mb_ptr2char_adv().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 16 Feb 2022 13:30: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