Use user-supplied autoshowcompl option's value.

This commit is contained in:
nuao 2017-06-17 18:07:45 +01:00
parent f9c48237a7
commit ddc846cf89

View File

@ -1036,7 +1036,7 @@ public:
m_restore_cursor(mode == InsertMode::Append),
m_edition(context()),
m_completer(context()),
m_autoshowcompl(true),
m_autoshowcompl{context().options()["autoshowcompl"].get<bool>()},
m_idle_timer{TimePoint::max(), context().flags() & Context::Flags::Transient ?
Timer::Callback{} : [this](Timer&) {
if (m_autoshowcompl)