1
0
forked from aniani/vim

patch 8.1.2066: no tests for state()

Problem:    No tests for state().
Solution:   Add tests.  Clean up some feature checks.  Make "a" flag work.
This commit is contained in:
Bram Moolenaar
2019-09-22 21:29:53 +02:00
parent 910c378d93
commit c258549032
4 changed files with 81 additions and 55 deletions

View File

@@ -1297,7 +1297,7 @@ f_state(typval_T *argvars, typval_T *rettv)
may_add_state_char(&ga, include, 'o');
if (autocmd_busy)
may_add_state_char(&ga, include, 'x');
if (!ctrl_x_mode_none())
if (ins_compl_active())
may_add_state_char(&ga, include, 'a');
# ifdef FEAT_JOB_CHANNEL