diff options
| author | Maxime Coste <mawww@kakoune.org> | 2024-09-02 20:35:07 +1000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2024-09-02 20:35:07 +1000 |
| commit | c1ce1d70146dd4b3cda76adc98bfac90da55d18c (patch) | |
| tree | 7b30cb5dd23605630f29754727d1635e7a3e5407 /src/insert_completer.hh | |
| parent | 6e5bc9dd6c477a71020dcbe6c7a387673825d941 (diff) | |
Explicitely call try_accept on InsertCompleter
Calling it as part of the insert method was error prone and often
led to slightly surprising behaviour, such as the <c-r><esc> hiding
the menu on <esc>.
Diffstat (limited to 'src/insert_completer.hh')
| -rw-r--r-- | src/insert_completer.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/insert_completer.hh b/src/insert_completer.hh index c624639d..713cdedb 100644 --- a/src/insert_completer.hh +++ b/src/insert_completer.hh @@ -90,6 +90,8 @@ public: void explicit_line_buffer_complete(); void explicit_line_all_complete(); + bool has_candidate_selected() const; + private: bool setup_ifn(); @@ -98,7 +100,6 @@ private: void on_option_changed(const Option& opt) override; void menu_show(); - bool has_candidate_selected() const; Context& m_context; OptionManager& m_options; |
