comparison src/ex_getln.c @ 11619:80af4916eadc v8.0.0692

patch 8.0.0692: CTRL-G with 'incsearch' and ? goes in the wrong direction commit https://github.com/vim/vim/commit/da5116da4586fc714434411d2cccb066caa3723e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 1 23:11:17 2017 +0200 patch 8.0.0692: CTRL-G with 'incsearch' and ? goes in the wrong direction Problem: Using CTRL-G with 'incsearch' and ? goes in the wrong direction. (Ramel Eshed) Solution: Adjust search_start. (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Sat, 01 Jul 2017 23:15:03 +0200
parents 7428a08c2f68
children aa426eb9589d
comparison
equal deleted inserted replaced
11618:81f5dcfbce26 11619:80af4916eadc
1706 * when nv_search finishes the cursor will be 1706 * when nv_search finishes the cursor will be
1707 * put back on the match */ 1707 * put back on the match */
1708 search_start = t; 1708 search_start = t;
1709 (void)decl(&search_start); 1709 (void)decl(&search_start);
1710 } 1710 }
1711 else if (c == Ctrl_G && firstc == '?')
1712 {
1713 /* move just after the current match, so that
1714 * when nv_search finishes the cursor will be
1715 * put back on the match */
1716 search_start = t;
1717 (void)incl(&search_start);
1718 }
1711 if (LT_POS(t, search_start) && c == Ctrl_G) 1719 if (LT_POS(t, search_start) && c == Ctrl_G)
1712 { 1720 {
1713 /* wrap around */ 1721 /* wrap around */
1714 search_start = t; 1722 search_start = t;
1715 if (firstc == '?') 1723 if (firstc == '?')