Mercurial > vim
comparison src/ex_getln.c @ 25376:485ae4421331 v8.2.3225
patch 8.2.3225: incsearch highlighting is attempted halfway a mapping
Commit: https://github.com/vim/vim/commit/ccb148ac63941feba879ea4678aa4713d81494f2
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jul 26 21:11:32 2021 +0200
patch 8.2.3225: incsearch highlighting is attempted halfway a mapping
Problem: Incsearch highlighting is attempted halfway a mapping.
Solution: Only do incsearch highlighting if keys were typed or there is no
more typeahead.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 26 Jul 2021 21:15:08 +0200 |
parents | 8f2262c72178 |
children | e8e2c4d33b9b |
comparison
equal
deleted
inserted
replaced
25375:68bfc73d8da6 | 25376:485ae4421331 |
---|---|
2388 if (trigger_cmdlinechanged) | 2388 if (trigger_cmdlinechanged) |
2389 // Trigger CmdlineChanged autocommands. | 2389 // Trigger CmdlineChanged autocommands. |
2390 trigger_cmd_autocmd(cmdline_type, EVENT_CMDLINECHANGED); | 2390 trigger_cmd_autocmd(cmdline_type, EVENT_CMDLINECHANGED); |
2391 | 2391 |
2392 #ifdef FEAT_SEARCH_EXTRA | 2392 #ifdef FEAT_SEARCH_EXTRA |
2393 if (xpc.xp_context == EXPAND_NOTHING) | 2393 if (xpc.xp_context == EXPAND_NOTHING && (KeyTyped || vpeekc() == NUL)) |
2394 may_do_incsearch_highlighting(firstc, count, &is_state); | 2394 may_do_incsearch_highlighting(firstc, count, &is_state); |
2395 #endif | 2395 #endif |
2396 | 2396 |
2397 #ifdef FEAT_RIGHTLEFT | 2397 #ifdef FEAT_RIGHTLEFT |
2398 if (cmdmsg_rl | 2398 if (cmdmsg_rl |