aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.lua
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-08-23 18:03:41 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-08-23 18:32:39 -0400
commit107e50b25e4b9098c0d1b4c34fec4bb17a9c7ad7 (patch)
tree342665a263ff3d076b8d28df9b46f78eb4275187 /src/nvim/eval.lua
parentbf8d96a30d27d123de723aa8985cf73588a08eea (diff)
downloadrneovim-107e50b25e4b9098c0d1b4c34fec4bb17a9c7ad7.tar.gz
rneovim-107e50b25e4b9098c0d1b4c34fec4bb17a9c7ad7.tar.bz2
rneovim-107e50b25e4b9098c0d1b4c34fec4bb17a9c7ad7.zip
vim-patch:8.2.1517: cannot easily get the character under the cursor
Problem: Cannot easily get the character under the cursor. Solution: Add the {chars} argument to strpart(). https://github.com/vim/vim/commit/6c53fca02301ff871cddc1c74c388e23e53a424a
Diffstat (limited to 'src/nvim/eval.lua')
-rw-r--r--src/nvim/eval.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua
index a5544435d2..be16ddd7f6 100644
--- a/src/nvim/eval.lua
+++ b/src/nvim/eval.lua
@@ -336,7 +336,7 @@ return {
stridx={args={2, 3}},
string={args=1},
strlen={args=1},
- strpart={args={2, 3}},
+ strpart={args={2, 4}},
strridx={args={2, 3}},
strtrans={args=1},
strwidth={args=1},