diff options
author | Matthieu Coudron <teto@users.noreply.github.com> | 2021-03-23 14:01:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-23 14:01:57 +0100 |
commit | a1a0bc618f02a61c2964e22015ff73520e1d10d8 (patch) | |
tree | 7790380bd5feee6f1dea097a63a9125a340d0e24 /test/functional/ui/diff_spec.lua | |
parent | 3e5efa50b689955beb36ce9f8cca7138fd5f0f8e (diff) | |
parent | e0d0e46cf2900a6c2d3a0d4b71a9422201b4797b (diff) | |
download | rneovim-a1a0bc618f02a61c2964e22015ff73520e1d10d8.tar.gz rneovim-a1a0bc618f02a61c2964e22015ff73520e1d10d8.tar.bz2 rneovim-a1a0bc618f02a61c2964e22015ff73520e1d10d8.zip |
Merge pull request #14190 from teto/fix-cursorlinenr
fix CursorLineNr with diff
Diffstat (limited to 'test/functional/ui/diff_spec.lua')
-rw-r--r-- | test/functional/ui/diff_spec.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/functional/ui/diff_spec.lua b/test/functional/ui/diff_spec.lua index 69b6ab8cf0..a8d9fb02fc 100644 --- a/test/functional/ui/diff_spec.lua +++ b/test/functional/ui/diff_spec.lua @@ -1049,6 +1049,8 @@ it('diff updates line numbers below filler lines', function() [9] = {background = Screen.colors.LightMagenta}, [10] = {bold = true, foreground = Screen.colors.Brown}, [11] = {foreground = Screen.colors.Brown}, + [12] = {foreground = Screen.colors.Brown, bold = true, background = Screen.colors.Red}; + [13] = {background = Screen.colors.Gray90}; }) source([[ call setline(1, ['a', 'a', 'a', 'y', 'b', 'b', 'b', 'b', 'b']) @@ -1107,4 +1109,22 @@ it('diff updates line numbers below filler lines', function() {3:[No Name] [+] }{7:[No Name] [+] }| | ]]) + command("set signcolumn number tgc cursorline") + command("hi CursorLineNr guibg=red") + screen:expect{grid=[[ + {1: }a {3:│}{11: 2 }a | + {1: }a {3:│}{11: 1 }a | + {1: }a {3:│}{12:3 }{13:^a }| + {1: }{8:x}{9: }{3:│}{11: 1 }{8:y}{9: }| + {1: }{4:x }{3:│}{11: }{2:----------------}| + {1: }{4:x }{3:│}{11: }{2:----------------}| + {1: }b {3:│}{11: 2 }b | + {1: }b {3:│}{11: 3 }b | + {1: }b {3:│}{11: 4 }b | + {1: }b {3:│}{11: 5 }b | + {1: }b {3:│}{11: 6 }b | + {6:~ }{3:│}{6:~ }| + {3:[No Name] [+] }{7:[No Name] [+] }| + signcolumn=auto | + ]]} end) |