Mercurial > vim
view src/testdir/test_comparators.vim @ 22846:83c2c489cb1b v8.2.1970
patch 8.2.1970: it is easy to make mistakes when cleaning up swap files
Commit: https://github.com/vim/vim/commit/f883508e36c209d60388b944e04e22a3fcf603cf
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Nov 9 21:04:17 2020 +0100
patch 8.2.1970: it is easy to make mistakes when cleaning up swap files
Problem: It is easy to make mistakes when cleaning up swap files after the
system crashed.
Solution: Warn for the process still running after recovery. Do not
automatically delete a swap file created on another system.
(David Fries, closes #7273)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 09 Nov 2020 21:15: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