comparison src/testdir/test_syntax.vim @ 11559:597205f1230e v8.0.0662

patch 8.0.0662: stray FIXME for fixed problem commit https://github.com/vim/vim/commit/4670490673ed98502a09b74fbabe785b47e3d289 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 22 23:03:12 2017 +0200 patch 8.0.0662: stray FIXME for fixed problem Problem: Stray FIXME for fixed problem. Solution: Remove the comment. (Dominique Pelle)
author Christian Brabandt <cb@256bit.org>
date Thu, 22 Jun 2017 23:15:03 +0200
parents cbceef33af7a
children 52e3a77c097b
comparison
equal deleted inserted replaced
11558:094d9d2996d3 11559:597205f1230e
476 call assert_equal('123456 ', ScreenLines(2, 7)[0]) 476 call assert_equal('123456 ', ScreenLines(2, 7)[0])
477 call assert_equal([[0, ''], [0, ''], [0, ''], [0, ''], [0, ''], [0, '']], map(range(1, 6), 'synconcealed(2, v:val)[0:1]')) 477 call assert_equal([[0, ''], [0, ''], [0, ''], [0, ''], [0, ''], [0, '']], map(range(1, 6), 'synconcealed(2, v:val)[0:1]'))
478 478
479 set conceallevel=1 479 set conceallevel=1
480 call assert_equal('1X 6 ', ScreenLines(2, 7)[0]) 480 call assert_equal('1X 6 ', ScreenLines(2, 7)[0])
481 " FIXME: with conceallevel=1, I would expect that the portion "45" of
482 " the line to be replaced with a space since ":help 'conceallevel'
483 " states that if listchars is not set, then the default replacement
484 " should be a space. But synconcealed() gives an empty string in
485 " the 2nd value of the returned list. Bug?
486 " So for now, the following line is commented out:
487 call assert_equal([[0, ''], [1, 'X'], [1, 'X'], [1, ' '], [1, ' '], [0, '']], map(range(1, 6), 'synconcealed(2, v:val)[0:1]')) 481 call assert_equal([[0, ''], [1, 'X'], [1, 'X'], [1, ' '], [1, ' '], [0, '']], map(range(1, 6), 'synconcealed(2, v:val)[0:1]'))
488 482
489 set conceallevel=1 483 set conceallevel=1
490 set listchars=conceal:Y 484 set listchars=conceal:Y
491 call assert_equal([[0, ''], [1, 'X'], [1, 'X'], [1, 'Y'], [1, 'Y'], [0, '']], map(range(1, 6), 'synconcealed(2, v:val)[0:1]')) 485 call assert_equal([[0, ''], [1, 'X'], [1, 'X'], [1, 'Y'], [1, 'Y'], [0, '']], map(range(1, 6), 'synconcealed(2, v:val)[0:1]'))