Mercurial > vim
comparison src/testdir/test_textprop.vim @ 30759:b41ccaa6fd84 v9.0.0714
patch 9.0.0714: with 'nowrap' two virtual text below not displayed correctly
Commit: https://github.com/vim/vim/commit/1206c163dbc8caace86e53f375f298af6cfab75a
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Oct 10 15:40:04 2022 +0100
patch 9.0.0714: with 'nowrap' two virtual text below not displayed correctly
Problem: With 'nowrap' two virtual text below not displayed correctly.
Solution: Set text_prop_follows before continuing. Correct for number
column. (closes #11333)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 10 Oct 2022 16:45:05 +0200 |
parents | 6fe513996997 |
children | 8ea77a6ceff0 |
comparison
equal
deleted
inserted
replaced
30758:483fb487e57c | 30759:b41ccaa6fd84 |
---|---|
3239 call VerifyScreenDump(buf, 'Test_text_after_nowrap_1', {}) | 3239 call VerifyScreenDump(buf, 'Test_text_after_nowrap_1', {}) |
3240 | 3240 |
3241 call StopVimInTerminal(buf) | 3241 call StopVimInTerminal(buf) |
3242 endfunc | 3242 endfunc |
3243 | 3243 |
3244 func Test_text_below_nowrap() | |
3245 CheckRunVimInTerminal | |
3246 | |
3247 let lines =<< trim END | |
3248 vim9script | |
3249 setline(1, ['first line', 'second line '->repeat(50), 'third', 'fourth']) | |
3250 set nowrap number | |
3251 prop_type_add('theprop', {highlight: 'DiffChange'}) | |
3252 prop_add(1, 0, { | |
3253 type: 'theprop', | |
3254 text: 'one below the text '->repeat(5), | |
3255 text_align: 'below', | |
3256 text_padding_left: 2, | |
3257 }) | |
3258 prop_add(1, 0, { | |
3259 type: 'theprop', | |
3260 text: 'two below the text '->repeat(5), | |
3261 text_align: 'below', | |
3262 text_padding_left: 2, | |
3263 }) | |
3264 normal 2Gw | |
3265 END | |
3266 call writefile(lines, 'XTextBelowNowrap', 'D') | |
3267 let buf = RunVimInTerminal('-S XTextBelowNowrap', #{rows: 8, cols: 60}) | |
3268 call VerifyScreenDump(buf, 'Test_text_below_nowrap_1', {}) | |
3269 | |
3270 call StopVimInTerminal(buf) | |
3271 endfunc | |
3272 | |
3244 func Test_insert_text_change_arg() | 3273 func Test_insert_text_change_arg() |
3245 CheckRunVimInTerminal | 3274 CheckRunVimInTerminal |
3246 | 3275 |
3247 let lines =<< trim END | 3276 let lines =<< trim END |
3248 vim9script | 3277 vim9script |