aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-05-22 06:54:09 +0800
committerGitHub <noreply@github.com>2024-05-22 06:54:09 +0800
commit2d8cb1bc9bb06920ed7423861fb20038848e79ae (patch)
tree6a9e75cb83c78c1828ef96fda8d6b1a607a461d3 /src/nvim/quickfix.c
parent879d17ea8d62c199ea0c91c5f37a4f25495be7ce (diff)
parent59fe8ffdeaacc08b811aa97d270daec6d6ed2769 (diff)
downloadrneovim-2d8cb1bc9bb06920ed7423861fb20038848e79ae.tar.gz
rneovim-2d8cb1bc9bb06920ed7423861fb20038848e79ae.tar.bz2
rneovim-2d8cb1bc9bb06920ed7423861fb20038848e79ae.zip
Merge pull request #28905 from zeertzjq/vim-9.1.0426
vim-patch:9.1.{0426,0428}: too many strlen() calls in search.c
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r--src/nvim/quickfix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index 2713dd2a45..e022184f2f 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -2902,7 +2902,7 @@ static void qf_jump_goto_line(linenr_T qf_lnum, int qf_col, char qf_viscol, char
// Move the cursor to the first line in the buffer
pos_T save_cursor = curwin->w_cursor;
curwin->w_cursor.lnum = 0;
- if (!do_search(NULL, '/', '/', qf_pattern, 1, SEARCH_KEEP, NULL)) {
+ if (!do_search(NULL, '/', '/', qf_pattern, strlen(qf_pattern), 1, SEARCH_KEEP, NULL)) {
curwin->w_cursor = save_cursor;
}
}