aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-02-26 23:13:12 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-02-27 07:34:59 +0800
commit0972d7a12468d6914a70e453af85c307b167c55b (patch)
tree917696cbca5316c5eb87e0bab6cb57d14ab2dde9 /src/nvim/eval.lua
parent1e37703a74eeebfa14c401db865157c39f1215bf (diff)
downloadrneovim-0972d7a12468d6914a70e453af85c307b167c55b.tar.gz
rneovim-0972d7a12468d6914a70e453af85c307b167c55b.tar.bz2
rneovim-0972d7a12468d6914a70e453af85c307b167c55b.zip
vim-patch:9.0.0196: finding value in list may require a for loop
Problem: Finding value in list may require a for loop. Solution: Add indexof(). (Yegappan Lakshmanan, closes vim/vim#10903) https://github.com/vim/vim/commit/b218655d5a485f5b193fb18d7240837d42b89812 Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
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 a1caeea95a..0c6912a702 100644
--- a/src/nvim/eval.lua
+++ b/src/nvim/eval.lua
@@ -213,6 +213,7 @@ return {
iconv={args=3, base=1, fast=true},
indent={args=1, base=1},
index={args={2, 4}, base=1},
+ indexof={args={2, 3}, base=1},
input={args={1, 3}, base=1},
inputdialog={args={1, 3}, base=1},
inputlist={args=1, base=1},