comparison src/search.c @ 19892:5feb426d2ea1 v8.2.0502

patch 8.2.0502: Vim9: some code is not tested Commit: https://github.com/vim/vim/commit/e8c4abbbd711af8fd3ed85ea69e9ac3d63a0d879 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 2 21:13:25 2020 +0200 patch 8.2.0502: Vim9: some code is not tested Problem: Vim9: some code is not tested. Solution: Add more tests. Fix uncovered problems.
author Bram Moolenaar <Bram@vim.org>
date Thu, 02 Apr 2020 21:15:04 +0200
parents 5512aa74cb62
children 545bdbc36f29
comparison
equal deleted inserted replaced
19891:e1168788aa04 19892:5feb426d2ea1
1310 /* 1310 /*
1311 * Find end of regular expression. 1311 * Find end of regular expression.
1312 * If there is a matching '/' or '?', toss it. 1312 * If there is a matching '/' or '?', toss it.
1313 */ 1313 */
1314 ps = strcopy; 1314 ps = strcopy;
1315 p = skip_regexp(pat, search_delim, (int)p_magic, &strcopy); 1315 p = skip_regexp_ex(pat, search_delim, (int)p_magic, &strcopy, NULL);
1316 if (strcopy != ps) 1316 if (strcopy != ps)
1317 { 1317 {
1318 // made a copy of "pat" to change "\?" to "?" 1318 // made a copy of "pat" to change "\?" to "?"
1319 searchcmdlen += (int)(STRLEN(pat) - STRLEN(strcopy)); 1319 searchcmdlen += (int)(STRLEN(pat) - STRLEN(strcopy));
1320 pat = strcopy; 1320 pat = strcopy;