aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/generators
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-04 16:46:38 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-05-04 17:40:29 +0800
commitb441dafdf53e367c7d43177274bd781c5c73e6e0 (patch)
tree4c8838192ce80a1ed652dd5bbda3c265678cdbea /src/nvim/generators
parent62351ff3d2fba336f09569d844a7b6f7f36a078d (diff)
downloadrneovim-b441dafdf53e367c7d43177274bd781c5c73e6e0.tar.gz
rneovim-b441dafdf53e367c7d43177274bd781c5c73e6e0.tar.bz2
rneovim-b441dafdf53e367c7d43177274bd781c5c73e6e0.zip
vim-patch:8.2.2344: using inclusive index for slice is not always desired
Problem: Using inclusive index for slice is not always desired. Solution: Add the slice() method, which has an exclusive index. (closes vim/vim#7408) https://github.com/vim/vim/commit/6601b62943a19d4f8818c3638440663d67a17b6a Cherry-pick a line in docs added later. Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/generators')
-rw-r--r--src/nvim/generators/gen_eval.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/generators/gen_eval.lua b/src/nvim/generators/gen_eval.lua
index 7d531bc228..e93e9a8d02 100644
--- a/src/nvim/generators/gen_eval.lua
+++ b/src/nvim/generators/gen_eval.lua
@@ -17,6 +17,7 @@ hashpipe:write([[
#include "nvim/cmdexpand.h"
#include "nvim/cmdhist.h"
#include "nvim/digraph.h"
+#include "nvim/eval.h"
#include "nvim/eval/buffer.h"
#include "nvim/eval/funcs.h"
#include "nvim/eval/typval.h"