Mercurial > vim
view src/testdir/test_comparators.vim @ 19145:ea3ac1de7704 v8.2.0132
patch 8.2.0132: script may be re-used when deleting and creating a new one
Commit: https://github.com/vim/vim/commit/ca33eb256eb910af05e8c9852bc9f716cece1f5c
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 19 20:18:09 2020 +0100
patch 8.2.0132: script may be re-used when deleting and creating a new one
Problem: Script may be re-used when deleting and creating a new one.
Solution: When the inode matches, also check the file name.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 19 Jan 2020 20:30:04 +0100 |
parents | 140d51d5b5c3 |
children | 08940efa6b4e |
line wrap: on
line source
function Test_Comparators() try let oldisident=&isident set isident+=# call assert_equal(1, 1 is#1) finally let &isident=oldisident endtry endfunction