Skip to content

Commit 349e7d9

Browse files
committed
patch 7.4.2318
Problem: When 'incsearch' is not set CTRL-T and CTRL-G are not inserted as before. Solution: Move #ifdef and don't use goto.
1 parent 0913a10 commit 349e7d9

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/ex_getln.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,9 +1657,9 @@ getcmdline(
16571657
#endif
16581658
goto cmdline_not_changed;
16591659

1660+
#ifdef FEAT_SEARCH_EXTRA
16601661
case Ctrl_G: /* next match */
16611662
case Ctrl_T: /* previous match */
1662-
#ifdef FEAT_SEARCH_EXTRA
16631663
if (p_is && !cmd_silent && (firstc == '/' || firstc == '?'))
16641664
{
16651665
pos_T t;
@@ -1724,8 +1724,9 @@ getcmdline(
17241724
}
17251725
else
17261726
vim_beep(BO_ERROR);
1727+
goto cmdline_not_changed;
17271728
}
1728-
goto cmdline_not_changed;
1729+
break;
17291730
#endif
17301731

17311732
case Ctrl_V:

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,8 @@ static char *(features[]) =
763763

764764
static int included_patches[] =
765765
{ /* Add new patch number below this line */
766+
/**/
767+
2318,
766768
/**/
767769
2317,
768770
/**/

0 commit comments

Comments
 (0)