mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
vim-patch:9.0.1007: there is no way to get a list of swap file names
Problem: There is no way to get a list of swap file names. Solution: Add the swapfilelist() function. Use it in the test script to clean up. Remove deleting individual swap files.c216a7a21a
vim-patch:9.0.1005: a failed test may leave a swap file behind Problem: A failed test may leave a swap file behind. Solution: Delete the swap file to avoid another test to fail. Use another file name.d0f8d39d20
Cherry-pick test_window_cmd.vim changes from patch 8.2.1593. Remove FUNC_ATTR_UNUSED from eval functions as fptr is always unused. Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -466,7 +466,7 @@ int main(int argc, char **argv)
|
||||
// Recovery mode without a file name: List swap files.
|
||||
// Uses the 'dir' option, therefore it must be after the initializations.
|
||||
if (recoverymode && fname == NULL) {
|
||||
recover_names(NULL, true, 0, NULL);
|
||||
recover_names(NULL, true, NULL, 0, NULL);
|
||||
os_exit(0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user