aboutsummaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
authorTeddy Wing2019-12-14 16:40:23 +0100
committerTeddy Wing2019-12-14 16:40:23 +0100
commitd26b7d079468e89a81b10e81f875169e24a26f49 (patch)
tree415d20e77ec2020d7d697ca9bb3d94e85f244945 /autoload
parentb772e113b413a1c12ca97cbcd9086d2cb5e3ca35 (diff)
downloadvim-nohai-d26b7d079468e89a81b10e81f875169e24a26f49.tar.bz2
Deactivate nohlsearch when exiting command line without <CR>
Previously I was deactivating the <CR> mapping in the rhs of the <CR> mapping. However, you can also exit command mode without pressing <CR> (e.g., with <C-c>). In that case, the <CR> mapping would still be active, causing regular search commands to nohlsearch on completion. Now, use a `CmdlineLeave` `autocmd` instead to remove the mapping and autocmd. This ensures the plugin always cleans up after itself when the search line is exited.
Diffstat (limited to 'autoload')
0 files changed, 0 insertions, 0 deletions