diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-10-28 11:00:51 +0800 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-10-28 13:43:04 +0800 |
| commit | d49555fc7568cff0db385d019a68cfdb0f28f8b0 (patch) | |
| tree | 54c852fe6bba4236baf632111341312547ed77f8 /src/window.hh | |
| parent | 9a449a33446f1c52bb02b4bea13bbc86d5742f2d (diff) | |
Move highlighters into Scopes
That means we can now have highlighters active at global, buffer, and
window scope. The add-highlighter and remove-highlighter syntax changed
to take the parent path (scope/group/...) as a mandatory argument,
superseeding the previous -group switch.
Diffstat (limited to 'src/window.hh')
| -rw-r--r-- | src/window.hh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/window.hh b/src/window.hh index 6aeaa0c0..28971bcb 100644 --- a/src/window.hh +++ b/src/window.hh @@ -40,8 +40,6 @@ public: Optional<DisplayCoord> display_position(BufferCoord coord) const; BufferCoord buffer_coord(DisplayCoord coord) const; - Highlighter& highlighters() { return m_highlighters; } - Buffer& buffer() const { return *m_buffer; } bool needs_redraw(const Context& context) const; @@ -67,8 +65,7 @@ private: DisplayCoord m_dimensions; DisplayBuffer m_display_buffer; - HighlighterGroup m_highlighters; - HighlighterGroup m_builtin_highlighters; + Highlighters m_builtin_highlighters; struct Setup { |
