Mercurial > vim
comparison src/testdir/test_textprop.vim @ 31283:0db9f6400e71 v9.0.0975
patch 9.0.0975: virtual text below empty line misplaced when 'number' set
Commit: https://github.com/vim/vim/commit/7c02ad9f8906b576e53a62342c68ae557f67bacc
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Nov 29 21:37:13 2022 +0000
patch 9.0.0975: virtual text below empty line misplaced when 'number' set
Problem: Virtual text below an empty line is misplaced when 'number' is
set.
Solution: Adjust the computations. (closes #11629)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 29 Nov 2022 22:45:03 +0100 |
parents | 6ebd92646276 |
children | d7a532c4d18d |
comparison
equal
deleted
inserted
replaced
31282:89c8a30a5407 | 31283:0db9f6400e71 |
---|---|
2742 END | 2742 END |
2743 call writefile(lines, 'XscriptPropBelowAfterEmpty', 'D') | 2743 call writefile(lines, 'XscriptPropBelowAfterEmpty', 'D') |
2744 let buf = RunVimInTerminal('-S XscriptPropBelowAfterEmpty', #{rows: 8, cols: 60}) | 2744 let buf = RunVimInTerminal('-S XscriptPropBelowAfterEmpty', #{rows: 8, cols: 60}) |
2745 call VerifyScreenDump(buf, 'Test_prop_below_after_empty_1', {}) | 2745 call VerifyScreenDump(buf, 'Test_prop_below_after_empty_1', {}) |
2746 | 2746 |
2747 call term_sendkeys(buf, ":set number\<CR>") | |
2748 call VerifyScreenDump(buf, 'Test_prop_below_after_empty_2', {}) | |
2749 | |
2747 call StopVimInTerminal(buf) | 2750 call StopVimInTerminal(buf) |
2748 endfunc | 2751 endfunc |
2749 | 2752 |
2750 func Test_prop_with_text_below_after_match() | 2753 func Test_prop_with_text_below_after_match() |
2751 CheckRunVimInTerminal | 2754 CheckRunVimInTerminal |