diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-21 21:30:52 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-21 21:30:52 +0100 |
commit | c036e87bd7001238ab7cc5d9e30e59bbf989a5fd (patch) | |
tree | 2ed9e85172f565706463cee71e7ad6a93637297a /src/tag.c | |
parent | 5b1c8fe3d588ab450d4646a0088db4efda88200a (diff) |
patch 8.2.0295: highlighting for :s wrong when using different separatorv8.2.0295
Problem: Highlighting for :s wrong when using different separator.
Solution: Use separat argument for search direction and separator. (Rob
Pilling, closes #5665)
Diffstat (limited to 'src/tag.c')
-rw-r--r-- | src/tag.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3543,7 +3543,7 @@ jumpto_tag( else // start search before first line curwin->w_cursor.lnum = 0; - if (do_search(NULL, pbuf[0], pbuf + 1, (long)1, + if (do_search(NULL, pbuf[0], pbuf[0], pbuf + 1, (long)1, search_options, NULL)) retval = OK; else @@ -3555,7 +3555,7 @@ jumpto_tag( * try again, ignore case now */ p_ic = TRUE; - if (!do_search(NULL, pbuf[0], pbuf + 1, (long)1, + if (!do_search(NULL, pbuf[0], pbuf[0], pbuf + 1, (long)1, search_options, NULL)) { /* @@ -3566,13 +3566,13 @@ jumpto_tag( cc = *tagp.tagname_end; *tagp.tagname_end = NUL; sprintf((char *)pbuf, "^%s\\s\\*(", tagp.tagname); - if (!do_search(NULL, '/', pbuf, (long)1, + if (!do_search(NULL, '/', '/', pbuf, (long)1, search_options, NULL)) { // Guess again: "^char * \<func (" sprintf((char *)pbuf, "^\\[#a-zA-Z_]\\.\\*\\<%s\\s\\*(", tagp.tagname); - if (!do_search(NULL, '/', pbuf, (long)1, + if (!do_search(NULL, '/', '/', pbuf, (long)1, search_options, NULL)) found = 0; } |