Permalink
Browse files

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.
  • Loading branch information...
1 parent 0913a10 commit 349e7d94e6bbb253bb87adad9039f095128ab543 @brammool brammool committed Sep 3, 2016
Showing with 5 additions and 2 deletions.
  1. +3 −2 src/ex_getln.c
  2. +2 −0 src/version.c
View
@@ -1657,9 +1657,9 @@ getcmdline(
#endif
goto cmdline_not_changed;
+#ifdef FEAT_SEARCH_EXTRA
case Ctrl_G: /* next match */
case Ctrl_T: /* previous match */
-#ifdef FEAT_SEARCH_EXTRA
if (p_is && !cmd_silent && (firstc == '/' || firstc == '?'))
{
pos_T t;
@@ -1724,8 +1724,9 @@ getcmdline(
}
else
vim_beep(BO_ERROR);
+ goto cmdline_not_changed;
}
- goto cmdline_not_changed;
+ break;
#endif
case Ctrl_V:
View
@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2318,
+/**/
2317,
/**/
2316,

0 comments on commit 349e7d9

Please sign in to comment.