diff options
author | Teddy Wing | 2019-12-14 17:02:03 +0100 |
---|---|---|
committer | Teddy Wing | 2019-12-14 17:02:03 +0100 |
commit | fdee7afc4e9378f0235ef52fb35e63b8219e7ffd (patch) | |
tree | 4cc42856bd90ed7f63b47c4c8982f0aac3ecab27 /autoload | |
parent | 3cde5aeae893ee5a5f1c782ec38df3de70e30a13 (diff) | |
download | vim-nohai-fdee7afc4e9378f0235ef52fb35e63b8219e7ffd.tar.bz2 |
Remove unnecessary code in `CmdlineEnter` command
* The `s:Nohai()` function is unnecessary, as it does the same thing as
`s:AddMapping()`. Call `s:AddMapping()` directly instead.
* Don't bother checking `cmdwin_char`. Because we limit the
`CmdlineEnter` `autocmd` to `/` and `?`, the `s:AddMapping()` function
will only ever be called on `/` and `?`, thus checking its value in a
condition is redundant.
Diffstat (limited to 'autoload')
0 files changed, 0 insertions, 0 deletions