Mercurial > vim
comparison src/testdir/test_diffmode.vim @ 12315:40ee9f3d265f v8.0.1037
patch 8.0.1037: "icase" of 'diffopt' is not used for highlighting
commit https://github.com/vim/vim/commit/da22b8cc8b1b96fabd5a4c35c57b04a351340fb1
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Sep 2 18:01:50 2017 +0200
patch 8.0.1037: "icase" of 'diffopt' is not used for highlighting
Problem: "icase" of 'diffopt' is not used for highlighting differences.
Solution: Also use "icase". (Rick Howe)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 02 Sep 2017 18:15:04 +0200 |
parents | eba1a8c6e21d |
children | 62e8cef76508 |
comparison
equal
deleted
inserted
replaced
12314:09e2bcb44017 | 12315:40ee9f3d265f |
---|---|
278 | 278 |
279 func Test_diffopt_icase() | 279 func Test_diffopt_icase() |
280 set diffopt=icase,foldcolumn:0 | 280 set diffopt=icase,foldcolumn:0 |
281 | 281 |
282 e one | 282 e one |
283 call setline(1, ['One', 'Two', 'Three', 'Four']) | 283 call setline(1, ['One', 'Two', 'Three', 'Four', 'Fi#ve']) |
284 redraw | 284 redraw |
285 let normattr = screenattr(1, 1) | 285 let normattr = screenattr(1, 1) |
286 diffthis | 286 diffthis |
287 | 287 |
288 botright vert new two | 288 botright vert new two |
289 call setline(1, ['one', 'TWO', 'Three ', 'Four']) | 289 call setline(1, ['one', 'TWO', 'Three ', 'Four', 'fI=VE']) |
290 diffthis | 290 diffthis |
291 | 291 |
292 redraw | 292 redraw |
293 call assert_equal(normattr, screenattr(1, 1)) | 293 call assert_equal(normattr, screenattr(1, 1)) |
294 call assert_equal(normattr, screenattr(2, 1)) | 294 call assert_equal(normattr, screenattr(2, 1)) |
295 call assert_notequal(normattr, screenattr(3, 1)) | 295 call assert_notequal(normattr, screenattr(3, 1)) |
296 call assert_equal(normattr, screenattr(4, 1)) | 296 call assert_equal(normattr, screenattr(4, 1)) |
297 | |
298 let dtextattr = screenattr(5, 3) | |
299 call assert_notequal(dtextattr, screenattr(5, 1)) | |
300 call assert_notequal(dtextattr, screenattr(5, 5)) | |
297 | 301 |
298 diffoff! | 302 diffoff! |
299 %bwipe! | 303 %bwipe! |
300 set diffopt& | 304 set diffopt& |
301 endfunc | 305 endfunc |