aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/regexp.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-09-13 01:33:53 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-09-13 08:25:20 -0400
commit476c50903a38a2ab85546c6f061117950d6e79fc (patch)
treeac1657af6803e98c9fb537fef13ad5827eb10b37 /src/nvim/regexp.c
parentcc049a5612a08b810f5897f7b108e0cdaba445b7 (diff)
downloadrneovim-476c50903a38a2ab85546c6f061117950d6e79fc.tar.gz
rneovim-476c50903a38a2ab85546c6f061117950d6e79fc.tar.bz2
rneovim-476c50903a38a2ab85546c6f061117950d6e79fc.zip
vim-patch:8.1.0499: :2vimgrep causes an ml_get error
Problem: :2vimgrep causes an ml_get error Solution: Pass tomatch pointer instead of value. (Yegappan Lakshmanan) https://github.com/vim/vim/commit/1c29943416207e21abbc790eaf563b36789170c2
Diffstat (limited to 'src/nvim/regexp.c')
-rw-r--r--src/nvim/regexp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c
index bcf02af4ef..a570328499 100644
--- a/src/nvim/regexp.c
+++ b/src/nvim/regexp.c
@@ -7387,6 +7387,7 @@ long vim_regexec_multi(
proftime_T *tm, // timeout limit or NULL
int *timed_out // flag is set when timeout limit reached
)
+ FUNC_ATTR_NONNULL_ARG(1)
{
regexec_T rex_save;
bool rex_in_use_save = rex_in_use;