comparison src/testdir/test_listlbr_utf8.vim @ 11585:18373179040e v8.0.0675

patch 8.0.0675: 'colorcolumn' has a higher priority than 'hlsearch' commit https://github.com/vim/vim/commit/774e5a9673260b1b8b88463669213a96637f72e8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 25 18:03:37 2017 +0200 patch 8.0.0675: 'colorcolumn' has a higher priority than 'hlsearch' Problem: 'colorcolumn' has a higher priority than 'hlsearch', it should be the other way around. (Nazri Ramliy) Solution: Change the priorities. (LemonBoy, closes #1794)
author Christian Brabandt <cb@256bit.org>
date Sun, 25 Jun 2017 18:15:03 +0200
parents c004e17fa36b
children 63b02fcf1361
comparison
equal deleted inserted replaced
11584:25b2326c3b3c 11585:18373179040e
192 \ ] 192 \ ]
193 call s:compare_lines(expect, lines) 193 call s:compare_lines(expect, lines)
194 call s:close_windows() 194 call s:close_windows()
195 endfunc 195 endfunc
196 196
197 func Test_colorcolumn_priority()
198 call s:test_windows('setl cc=4 cuc hls')
199 call setline(1, ["xxyy", ""])
200 norm! gg
201 exe "normal! /xxyy\<CR>"
202 norm! G
203 redraw!
204 let line_attr = s:screen_attr(1, [1, &cc])
205 " Search wins over CursorColumn
206 call assert_equal(line_attr[1], line_attr[0])
207 " Search wins over Colorcolumn
208 call assert_equal(line_attr[2], line_attr[3])
209 call s:close_windows('setl hls&vim')
210 endfunc
211
197 func Test_illegal_byte_and_breakat() 212 func Test_illegal_byte_and_breakat()
198 call s:test_windows("setl sbr= brk+=<") 213 call s:test_windows("setl sbr= brk+=<")
199 vert resize 18 214 vert resize 18
200 call setline(1, repeat("\x80", 6)) 215 call setline(1, repeat("\x80", 6))
201 redraw! 216 redraw!