mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-26 13:02:01 +03:00
Fix manual insert completion menu not getting automatically hidden
Fixes #2208
This commit is contained in:
parent
d23ac09fc1
commit
c58457a3c0
@ -1096,8 +1096,7 @@ public:
|
||||
m_disable_hooks{context().hooks_disabled(), context().hooks_disabled()},
|
||||
m_idle_timer{TimePoint::max(), context().flags() & Context::Flags::Draft ?
|
||||
Timer::Callback{} : [this](Timer&) {
|
||||
if (m_auto_complete)
|
||||
m_completer.update();
|
||||
m_completer.update(m_auto_complete);
|
||||
context().hooks().run_hook("InsertIdle", "", context());
|
||||
}}
|
||||
{
|
||||
|
@ -459,12 +459,13 @@ void InsertCompleter::select(int index, bool relative, Vector<Key>& keystrokes)
|
||||
}
|
||||
}
|
||||
|
||||
void InsertCompleter::update()
|
||||
void InsertCompleter::update(bool allow_implicit)
|
||||
{
|
||||
if (m_explicit_completer and try_complete(m_explicit_completer))
|
||||
return;
|
||||
|
||||
reset();
|
||||
if (allow_implicit)
|
||||
setup_ifn();
|
||||
}
|
||||
|
||||
|
@ -83,7 +83,7 @@ public:
|
||||
~InsertCompleter();
|
||||
|
||||
void select(int index, bool relative, Vector<Key>& keystrokes);
|
||||
void update();
|
||||
void update(bool allow_implicit);
|
||||
void reset();
|
||||
|
||||
void explicit_file_complete();
|
||||
|
Loading…
Reference in New Issue
Block a user