diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-05-19 22:16:59 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-05-19 22:20:52 -0400 |
commit | 74f64601817a6cec92bf40a3b29809cb6e12afcc (patch) | |
tree | b6adbb55ea0f7bf409c8d6f366338da380135a3d /test/functional/ui/screen.lua | |
parent | 1fabc639078e1ddbc4ef6ddd7cb310a67fb1c0fb (diff) | |
parent | e5eea7fa06ae7057521755d1f638d34e049bd379 (diff) | |
download | rneovim-74f64601817a6cec92bf40a3b29809cb6e12afcc.tar.gz rneovim-74f64601817a6cec92bf40a3b29809cb6e12afcc.tar.bz2 rneovim-74f64601817a6cec92bf40a3b29809cb6e12afcc.zip |
Merge #4633: support "special" highlight (undercurl)
Closes #2040
Closes #3370
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r-- | test/functional/ui/screen.lua | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua index a11fab18a2..6372cbe081 100644 --- a/test/functional/ui/screen.lua +++ b/test/functional/ui/screen.lua @@ -425,6 +425,10 @@ function Screen:_handle_update_bg(bg) self._bg = bg end +function Screen:_handle_update_sp(sp) + self._sp = sp +end + function Screen:_handle_suspend() self.suspended = true end @@ -573,7 +577,7 @@ function Screen:_pprint_attrs(attrs) local items = {} for f, v in pairs(attrs) do local desc = tostring(v) - if f == "foreground" or f == "background" then + if f == "foreground" or f == "background" or f == "special" then if Screen.colornames[v] ~= nil then desc = "Screen.colors."..Screen.colornames[v] end @@ -614,7 +618,8 @@ function Screen:_equal_attrs(a, b) a.underline == b.underline and a.undercurl == b.undercurl and a.italic == b.italic and a.reverse == b.reverse and a.foreground == b.foreground and - a.background == b.background + a.background == b.background and + a.special == b.special end function Screen:_attr_index(attrs, attr) |