Mercurial > vim
comparison src/ex_getln.c @ 10094:61dc69646af6 v7.4.2318
commit https://github.com/vim/vim/commit/349e7d94e6bbb253bb87adad9039f095128ab543
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 3 20:04:34 2016 +0200
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 03 Sep 2016 20:15:05 +0200 |
parents | 7fc6103c6651 |
children | 72e4b7f90465 |
comparison
equal
deleted
inserted
replaced
10093:7598d04404af | 10094:61dc69646af6 |
---|---|
1655 } | 1655 } |
1656 beep_flush(); | 1656 beep_flush(); |
1657 #endif | 1657 #endif |
1658 goto cmdline_not_changed; | 1658 goto cmdline_not_changed; |
1659 | 1659 |
1660 #ifdef FEAT_SEARCH_EXTRA | |
1660 case Ctrl_G: /* next match */ | 1661 case Ctrl_G: /* next match */ |
1661 case Ctrl_T: /* previous match */ | 1662 case Ctrl_T: /* previous match */ |
1662 #ifdef FEAT_SEARCH_EXTRA | |
1663 if (p_is && !cmd_silent && (firstc == '/' || firstc == '?')) | 1663 if (p_is && !cmd_silent && (firstc == '/' || firstc == '?')) |
1664 { | 1664 { |
1665 pos_T t; | 1665 pos_T t; |
1666 int search_flags = SEARCH_KEEP + SEARCH_NOOF | 1666 int search_flags = SEARCH_KEEP + SEARCH_NOOF |
1667 + SEARCH_PEEK; | 1667 + SEARCH_PEEK; |
1722 update_screen(NOT_VALID); | 1722 update_screen(NOT_VALID); |
1723 redrawcmdline(); | 1723 redrawcmdline(); |
1724 } | 1724 } |
1725 else | 1725 else |
1726 vim_beep(BO_ERROR); | 1726 vim_beep(BO_ERROR); |
1727 } | 1727 goto cmdline_not_changed; |
1728 goto cmdline_not_changed; | 1728 } |
1729 break; | |
1729 #endif | 1730 #endif |
1730 | 1731 |
1731 case Ctrl_V: | 1732 case Ctrl_V: |
1732 case Ctrl_Q: | 1733 case Ctrl_Q: |
1733 #ifdef FEAT_MOUSE | 1734 #ifdef FEAT_MOUSE |