Mercurial > vim
diff src/testdir/test_textprop.vim @ 30213:4fedacdad3b4 v9.0.0442
patch 9.0.0442: virtual text "above" doesn't handel line numbers
Commit: https://github.com/vim/vim/commit/79f8b8494cd4f738f25272ece94d8b524b99cb09
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 11 13:31:01 2022 +0100
patch 9.0.0442: virtual text "above" doesn't handel line numbers
Problem: Virtual text "above" doesn't handel line numbers.
Solution: Take the left column offset into account. (issue https://github.com/vim/vim/issues/11084)
Also make padding work.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 11 Sep 2022 14:45:04 +0200 |
parents | 7147c6059e80 |
children | 0d084880276a |
line wrap: on
line diff
--- a/src/testdir/test_textprop.vim +++ b/src/testdir/test_textprop.vim @@ -2857,7 +2857,7 @@ func Test_props_with_text_above() call prop_type_add('above2', #{highlight: 'DiffChange'}) call prop_add(1, 0, #{type: 'above1', text: 'first thing above', text_align: 'above'}) call prop_add(1, 0, #{type: 'above2', text: 'second thing above', text_align: 'above'}) - call prop_add(3, 0, #{type: 'above1', text: 'another thing', text_align: 'above'}) + call prop_add(3, 0, #{type: 'above1', text: 'another thing', text_align: 'above', text_padding_left: 3}) normal gglllj END @@ -2870,6 +2870,9 @@ func Test_props_with_text_above() call term_sendkeys(buf, "inserted \<Esc>") call VerifyScreenDump(buf, 'Test_prop_with_text_above_3', {}) + call term_sendkeys(buf, ":set number signcolumn=yes\<CR>") + call VerifyScreenDump(buf, 'Test_prop_with_text_above_4', {}) + call StopVimInTerminal(buf) endfunc