comparison src/edit.c @ 15239:db5d2429bda3 v8.1.0629

patch 8.1.0629: "gn" selects the wrong text with a multi-line match commit https://github.com/vim/vim/commit/5d24a2257e597fd752e33b2c1e9c19cf9114a517 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 23 19:10:09 2018 +0100 patch 8.1.0629: "gn" selects the wrong text with a multi-line match Problem: "gn" selects the wrong text with a multi-line match. Solution: Get the end position from searchit() directly. (closes https://github.com/vim/vim/issues/3695)
author Bram Moolenaar <Bram@vim.org>
date Sun, 23 Dec 2018 19:15:05 +0100
parents de63593896b3
children f6b522596993
comparison
equal deleted inserted replaced
15238:85705008bb7a 15239:db5d2429bda3
4651 if (CTRL_X_MODE_LINE_OR_EVAL(ctrl_x_mode) 4651 if (CTRL_X_MODE_LINE_OR_EVAL(ctrl_x_mode)
4652 || (compl_cont_status & CONT_SOL)) 4652 || (compl_cont_status & CONT_SOL))
4653 found_new_match = search_for_exact_line(ins_buf, pos, 4653 found_new_match = search_for_exact_line(ins_buf, pos,
4654 compl_direction, compl_pattern); 4654 compl_direction, compl_pattern);
4655 else 4655 else
4656 found_new_match = searchit(NULL, ins_buf, pos, 4656 found_new_match = searchit(NULL, ins_buf, pos, NULL,
4657 compl_direction, 4657 compl_direction,
4658 compl_pattern, 1L, SEARCH_KEEP + SEARCH_NFMSG, 4658 compl_pattern, 1L, SEARCH_KEEP + SEARCH_NFMSG,
4659 RE_LAST, (linenr_T)0, NULL, NULL); 4659 RE_LAST, (linenr_T)0, NULL, NULL);
4660 --msg_silent; 4660 --msg_silent;
4661 if (!compl_started || set_match_pos) 4661 if (!compl_started || set_match_pos)