summaryrefslogtreecommitdiff
path: root/src/context.cc
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/context.cc
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/context.cc')
-rw-r--r--src/context.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/context.cc b/src/context.cc
index ece4a2f4..03cf1586 100644
--- a/src/context.cc
+++ b/src/context.cc
@@ -96,7 +96,7 @@ const SelectionList& JumpList::forward(Context& context, int count)
res.update();
context.print_status({ format("jumped to #{} ({})",
m_current, m_jumps.size() - 1),
- get_face("Information") });
+ context.faces()["Information"] });
return res;
}
throw runtime_error("no next jump");
@@ -117,7 +117,7 @@ const SelectionList& JumpList::backward(Context& context, int count)
res.update();
context.print_status({ format("jumped to #{} ({})",
m_current, m_jumps.size() - 1),
- get_face("Information") });
+ context.faces()["Information"] });
return res;
}
if (m_current != 0)
@@ -133,7 +133,7 @@ const SelectionList& JumpList::backward(Context& context, int count)
res.update();
context.print_status({ format("jumped to #{} ({})",
m_current, m_jumps.size() - 1),
- get_face("Information") });
+ context.faces()["Information"] });
return res;
}
throw runtime_error("no previous jump");