diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-10-23 08:56:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-23 08:56:07 -0400 |
commit | 9280a69a6d1828972cb8a0f6b7f81e0a5e73c886 (patch) | |
tree | 21d931d692cc8cfb6ce5d4946e46c5556b4cc7a5 | |
parent | df726408d7043c618877118909f53a78b85eb2fd (diff) | |
parent | 49b8d43052ef2610e1fa87c484daa735a79c79ee (diff) | |
download | rneovim-9280a69a6d1828972cb8a0f6b7f81e0a5e73c886.tar.gz rneovim-9280a69a6d1828972cb8a0f6b7f81e0a5e73c886.tar.bz2 rneovim-9280a69a6d1828972cb8a0f6b7f81e0a5e73c886.zip |
Merge pull request #13131 from janlazo/vim-8.2.0952
vim-patch:8.2.{952,1885,1887}
-rw-r--r-- | runtime/doc/vim_diff.txt | 3 | ||||
-rw-r--r-- | src/nvim/testdir/test_autocmd.vim | 13 | ||||
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 2 |
3 files changed, 18 insertions, 0 deletions
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index ae60c1c5e8..1fcb6611b4 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -450,6 +450,9 @@ Eval: *js_decode()* *v:none* (used by Vim to represent JavaScript "undefined"); use |v:null| instead. +Events: + *SigUSR1* Use |Signal| to detect `SIGUSR1` signal instead. + Highlight groups: *hl-StatusLineTerm* *hl-StatusLineTermNC* are unnecessary because Nvim supports 'winhighlight' window-local highlights. diff --git a/src/nvim/testdir/test_autocmd.vim b/src/nvim/testdir/test_autocmd.vim index 094bb3ebd1..04a678eeb8 100644 --- a/src/nvim/testdir/test_autocmd.vim +++ b/src/nvim/testdir/test_autocmd.vim @@ -1897,4 +1897,17 @@ func Test_autocmd_FileReadCmd() delfunc ReadFileCmd endfunc +" Tests for SigUSR1 autocmd event, which is only available on posix systems. +func Test_autocmd_sigusr1() + CheckUnix + + let g:sigusr1_passed = 0 + au Signal SIGUSR1 let g:sigusr1_passed = 1 + call system('/bin/kill -s usr1 ' . getpid()) + call WaitForAssert({-> assert_true(g:sigusr1_passed)}) + + au! Signal + unlet g:sigusr1_passed +endfunc + " vim: shiftwidth=2 sts=2 expandtab diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index c7ca682c8c..9f79c1b545 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -532,6 +532,7 @@ let s:filename_case_checks = { \ } func CheckItems(checks) + set noswapfile for [ft, names] in items(a:checks) for i in range(0, len(names) - 1) new @@ -548,6 +549,7 @@ func CheckItems(checks) bwipe! endfor endfor + set swapfile& endfunc func Test_filetype_detection() |