summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authornuao <nuao@users.noreply.github.com>2017-06-17 18:07:45 +0100
committernuao <nuao@users.noreply.github.com>2017-06-17 18:07:45 +0100
commitddc846cf89297bd3f0d59640e00c3d77df2046d3 (patch)
treeb72b34a95b90769ff3f7aeb27877ced9473b26ba /src/input_handler.cc
parentf9c48237a7d3a8c2aae44c532a398f62ea0100f1 (diff)
Use user-supplied autoshowcompl option's value.
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc
index 65405057..ff7e5ef2 100644
--- a/src/input_handler.cc
+++ b/src/input_handler.cc
@@ -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)