aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-12-12 16:25:11 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-01-10 21:41:31 -0300
commit4f5f246a958e66e04a5d62b3bf0d8986afb51c09 (patch)
tree7bafd201edc44c22a39003a43a51ced1983917c2 /test
parent209b5ed6ba76fe28c5ec7e1c7b38f77c1fa53250 (diff)
downloadrneovim-4f5f246a958e66e04a5d62b3bf0d8986afb51c09.tar.gz
rneovim-4f5f246a958e66e04a5d62b3bf0d8986afb51c09.tar.bz2
rneovim-4f5f246a958e66e04a5d62b3bf0d8986afb51c09.zip
ui: Add update_fg/update_bg methods
It is necessary to notify the UI when the default background/foreground colors change in order to render correctly.
Diffstat (limited to 'test')
-rw-r--r--test/functional/ui/screen.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua
index 7917fff1e7..c9c9d5a197 100644
--- a/test/functional/ui/screen.lua
+++ b/test/functional/ui/screen.lua
@@ -278,6 +278,14 @@ function Screen:_handle_visual_bell()
self._visual_bell = true
end
+function Screen:_handle_update_fg(fg)
+ self._fg = fg
+end
+
+function Screen:_handle_update_bg(bg)
+ self._bg = bg
+end
+
function Screen:_handle_suspend()
self._suspended = true
end