Mercurial > vim
comparison src/quickfix.c @ 18358:34d5cd432cac v8.1.2173
patch 8.1.2173: searchit() has too many arguments
Commit: https://github.com/vim/vim/commit/92ea26b925a0835badb0af2d5887238a4198cabb
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Oct 18 20:53:34 2019 +0200
patch 8.1.2173: searchit() has too many arguments
Problem: Searchit() has too many arguments.
Solution: Move optional arguments to a struct. Add the "wrapped" argument.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 18 Oct 2019 21:00:04 +0200 |
parents | 4cc8a1a134fc |
children | 0ac9e720a56e |
comparison
equal
deleted
inserted
replaced
18357:ffe2ff94a3e0 | 18358:34d5cd432cac |
---|---|
3205 pos_T save_cursor; | 3205 pos_T save_cursor; |
3206 | 3206 |
3207 // Move the cursor to the first line in the buffer | 3207 // Move the cursor to the first line in the buffer |
3208 save_cursor = curwin->w_cursor; | 3208 save_cursor = curwin->w_cursor; |
3209 curwin->w_cursor.lnum = 0; | 3209 curwin->w_cursor.lnum = 0; |
3210 if (!do_search(NULL, '/', qf_pattern, (long)1, | 3210 if (!do_search(NULL, '/', qf_pattern, (long)1, SEARCH_KEEP, NULL)) |
3211 SEARCH_KEEP, NULL, NULL)) | |
3212 curwin->w_cursor = save_cursor; | 3211 curwin->w_cursor = save_cursor; |
3213 } | 3212 } |
3214 } | 3213 } |
3215 | 3214 |
3216 /* | 3215 /* |