summaryrefslogtreecommitdiff
path: root/src/insert_completer.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-04-07 15:36:39 +1000
committerMaxime Coste <mawww@kakoune.org>2018-04-07 16:27:50 +1000
commit57baad4afde8d1bab4040c5a5cbe8a5b367bceba (patch)
tree5e4f5fba17f8a6038301fcb129f36db102b0bd70 /src/insert_completer.hh
parent6adb28ec1243adf13126ee47444d57dd2b842945 (diff)
Make FaceRegistry scoped
set-face now takes a scope argument, and faces can be overridden on a buffer or window basis. colorscheme apply on global scope, which should be good enough for now. Fixes #1411
Diffstat (limited to 'src/insert_completer.hh')
-rw-r--r--src/insert_completer.hh14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/insert_completer.hh b/src/insert_completer.hh
index a47a4267..15244bf1 100644
--- a/src/insert_completer.hh
+++ b/src/insert_completer.hh
@@ -13,6 +13,7 @@ namespace Kakoune
struct SelectionList;
struct Key;
+class FaceRegistry;
struct InsertCompleterDesc
{
@@ -100,12 +101,15 @@ private:
void menu_show();
- Context& m_context;
- OptionManager& m_options;
- InsertCompletion m_completions;
- int m_current_candidate = -1;
+ Context& m_context;
+ OptionManager& m_options;
+ const FaceRegistry& m_faces;
+ InsertCompletion m_completions;
+ int m_current_candidate = -1;
- using CompleteFunc = InsertCompletion (const SelectionList& sels, const OptionManager& options);
+ using CompleteFunc = InsertCompletion (const SelectionList& sels,
+ const OptionManager& options,
+ const FaceRegistry& faces);
CompleteFunc* m_explicit_completer = nullptr;
};