summaryrefslogtreecommitdiff
path: root/src/insert_completer.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-12-27 08:49:15 +0000
committerMaxime Coste <frrrwww@gmail.com>2015-12-27 08:53:31 +0000
commitc39a4d58790ad0be02d52bc6abba306b005adb6e (patch)
tree8b0da1c8d3724937da5b306d43908f4f8daf4013 /src/insert_completer.hh
parent978e8d18b923391c17eb81010dd082bb5b7a9b52 (diff)
Add a static_words str-list option always considered for word completion
Fixes #313
Diffstat (limited to 'src/insert_completer.hh')
-rw-r--r--src/insert_completer.hh7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/insert_completer.hh b/src/insert_completer.hh
index 5aeade49..64c54758 100644
--- a/src/insert_completer.hh
+++ b/src/insert_completer.hh
@@ -76,8 +76,8 @@ public:
private:
bool setup_ifn();
- template<typename CompleteFunc>
- bool try_complete(CompleteFunc complete_func);
+ template<typename Func>
+ bool try_complete(Func complete_func);
void on_option_changed(const Option& opt) override;
void menu_show();
@@ -90,7 +90,8 @@ private:
CandidateList m_matching_candidates;
int m_current_candidate = -1;
- std::function<InsertCompletion (const Buffer&, ByteCoord)> m_explicit_completer;
+ using CompleteFunc = InsertCompletion (const Buffer&, ByteCoord, const OptionManager& options);
+ std::function<CompleteFunc> m_explicit_completer;
};
}