summaryrefslogtreecommitdiff
path: root/test/test_should_do_nothing_conditions.vader
blob: 4d6facf952edb9ffc1e422705958ccb27d24a51a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Before:
  Save &l:statusline

After:
  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(''))