aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-19 10:06:34 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-04-19 11:29:35 +0800
commit85c61d67160133ba53762bc1e5e7bbd7a0c582c0 (patch)
tree5931d3222fcac7d05fc53481e63dae5422b8fdd4 /src/nvim/eval.lua
parentd82a6ca72aca57d89cfb8954abf2ae3980f85c04 (diff)
downloadrneovim-85c61d67160133ba53762bc1e5e7bbd7a0c582c0.tar.gz
rneovim-85c61d67160133ba53762bc1e5e7bbd7a0c582c0.tar.bz2
rneovim-85c61d67160133ba53762bc1e5e7bbd7a0c582c0.zip
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. https://github.com/vim/vim/commit/c216a7a21a25a701b84b79abc1ba6ab0baa3a311 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. https://github.com/vim/vim/commit/d0f8d39d20f8d42f7451f781f7be0bcd20e06741 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>
Diffstat (limited to 'src/nvim/eval.lua')
-rw-r--r--src/nvim/eval.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua
index 7dbfac80f3..5babfa4809 100644
--- a/src/nvim/eval.lua
+++ b/src/nvim/eval.lua
@@ -400,6 +400,7 @@ return {
strwidth={args=1, base=1, fast=true},
submatch={args={1, 2}, base=1},
substitute={args=4, base=1},
+ swapfilelist={},
swapinfo={args=1, base=1},
swapname={args=1, base=1},
synID={args=3},