Merge remote-tracking branch 'nuao/autoshowcompl_opt'

This commit is contained in:
Maxime Coste 2017-06-23 10:20:34 +01:00
commit 430e4495f0

View File

@ -1046,7 +1046,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)