From 57baad4afde8d1bab4040c5a5cbe8a5b367bceba Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 7 Apr 2018 15:36:39 +1000 Subject: 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 --- src/insert_completer.hh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/insert_completer.hh') 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; }; -- cgit v1.2.3