diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-10-02 21:20:32 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-10-02 21:20:32 +0200 |
commit | 7701f308565fdc7b5096a6597d9c3b63de0bbcec (patch) | |
tree | ecc3673dfe38d99a4664f1a1821cc90513bae8e4 /src/testdir/test_fold.vim | |
parent | 4a5abbd6138240d109278fe1f0b45489d22f712d (diff) | |
download | vim-git-7701f308565fdc7b5096a6597d9c3b63de0bbcec.tar.gz |
patch 8.1.0449: when 'rnu' is set folded lines are not displayed correctlyv8.1.0449
Problem: When 'rnu' is set folded lines are not displayed correctly.
(Vitaly Yashin)
Solution: When only redrawing line numbers do draw folded lines.
(closes #3484)
Diffstat (limited to 'src/testdir/test_fold.vim')
-rw-r--r-- | src/testdir/test_fold.vim | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/testdir/test_fold.vim b/src/testdir/test_fold.vim index df4b12c8c..0384b4fd0 100644 --- a/src/testdir/test_fold.vim +++ b/src/testdir/test_fold.vim @@ -1,6 +1,7 @@ " Test for folding source view_util.vim +source screendump.vim func PrepIndent(arg) return [a:arg] + repeat(["\t".a:arg], 5) @@ -674,3 +675,23 @@ func Test_fold_last_line_with_pagedown() set fdm& enew! endfunc + +func Test_folds_with_rnu() + if !CanRunVimInTerminal() + return + endif + + call writefile([ + \ 'set fdm=marker rnu foldcolumn=2', + \ 'call setline(1, ["{{{1", "nline 1", "{{{1", "line 2"])', + \ ], 'Xtest_folds_with_rnu') + let buf = RunVimInTerminal('-S Xtest_folds_with_rnu', {}) + + call VerifyScreenDump(buf, 'Test_folds_with_rnu_01', {}) + call term_sendkeys(buf, "j") + call VerifyScreenDump(buf, 'Test_folds_with_rnu_02', {}) + + " clean up + call StopVimInTerminal(buf) + call delete('Xtest_folds_with_rnu') +endfunc |