2017-09-03 13:24:43 -04:00
|
|
|
Before:
|
|
|
|
Save &l:statusline
|
|
|
|
|
2017-10-14 12:24:29 -04:00
|
|
|
let b:funky_command_created = 0
|
|
|
|
|
|
|
|
" We will test for the existence of this command, so create one if needed.
|
|
|
|
if !exists(':CtrlPFunky')
|
|
|
|
command CtrlPFunky echo
|
|
|
|
let b:funky_command_created = 1
|
|
|
|
endif
|
|
|
|
|
2017-09-03 13:24:43 -04:00
|
|
|
After:
|
2017-10-14 12:24:29 -04:00
|
|
|
if b:funky_command_created
|
|
|
|
delcommand CtrlPFunky
|
|
|
|
let b:funky_command_created = 0
|
|
|
|
endif
|
|
|
|
|
2017-10-14 12:27:05 -04:00
|
|
|
unlet! b:funky_command_created
|
|
|
|
|
2017-09-03 13:24:43 -04:00
|
|
|
Restore
|
|
|
|
|
|
|
|
Execute(ALE shouldn't do much of anything for ctrlp-funky buffers):
|
|
|
|
Assert !ale#ShouldDoNothing(bufnr('')), 'The preliminary check failed'
|
|
|
|
|
|
|
|
let &l:statusline = '%#CtrlPMode2# prt %*%#CtrlPMode1# line %* <mru>={%#CtrlPMode1# funky %*}=<fil> <-> %=%<%#CtrlPMode2# %{getcwd()} %*'
|
|
|
|
|
|
|
|
Assert ale#ShouldDoNothing(bufnr(''))
|