view src/testdir/test_comparators.vim @ 31047:ac1f548223a5 v9.0.0858

patch 9.0.0858: "!!sort" in a closed fold sorts too many lines Commit: https://github.com/vim/vim/commit/f00112d558eb9a7d1d5413c096960ddcc52c9f66 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Nov 11 01:20:35 2022 +0000 patch 9.0.0858: "!!sort" in a closed fold sorts too many lines Problem: "!!sort" in a closed fold sorts too many lines. Solution: Round to end of fold after adding the line count. (closes https://github.com/vim/vim/issues/11487)
author Bram Moolenaar <Bram@vim.org>
date Fri, 11 Nov 2022 02:30:03 +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