aboutsummaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
authorTeddy Wing2019-12-14 17:02:03 +0100
committerTeddy Wing2019-12-14 17:02:03 +0100
commitfdee7afc4e9378f0235ef52fb35e63b8219e7ffd (patch)
tree4cc42856bd90ed7f63b47c4c8982f0aac3ecab27 /autoload
parent3cde5aeae893ee5a5f1c782ec38df3de70e30a13 (diff)
downloadvim-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