Mercurial > vim
comparison src/testdir/test_textprop.vim @ 33021:2b47322be0d1 v9.0.1802
patch 9.0.1802: Multiline regex with Visual selection fails with virtual text
Commit: https://github.com/vim/vim/commit/e3daa06be1a3ba7ced0735582467d092275e591c
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sun Aug 27 19:11:46 2023 +0200
patch 9.0.1802: Multiline regex with Visual selection fails with virtual text
Problem: Multiline regex with Visual selection fails when Visual
selection contains virtual text after last char.
Solution: Only include virtual text after last char when getting full
line length.
closes: #12908
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 27 Aug 2023 19:15:09 +0200 |
parents | 7d0357f70cf8 |
children | d03841a271aa |
comparison
equal
deleted
inserted
replaced
33020:120da95ad043 | 33021:2b47322be0d1 |
---|---|
3233 call VerifyScreenDump(buf, 'Test_prop_with_text_empty_line_3', {}) | 3233 call VerifyScreenDump(buf, 'Test_prop_with_text_empty_line_3', {}) |
3234 call term_sendkeys(buf, "j") | 3234 call term_sendkeys(buf, "j") |
3235 call VerifyScreenDump(buf, 'Test_prop_with_text_empty_line_4', {}) | 3235 call VerifyScreenDump(buf, 'Test_prop_with_text_empty_line_4', {}) |
3236 call term_sendkeys(buf, "j") | 3236 call term_sendkeys(buf, "j") |
3237 call VerifyScreenDump(buf, 'Test_prop_with_text_empty_line_5', {}) | 3237 call VerifyScreenDump(buf, 'Test_prop_with_text_empty_line_5', {}) |
3238 call term_sendkeys(buf, "0\<C-V>2l2k") | |
3239 call VerifyScreenDump(buf, 'Test_prop_with_text_empty_line_6', {}) | |
3240 call term_sendkeys(buf, "\<Esc>/aaa\\n\\%V\<CR>") | |
3241 call VerifyScreenDump(buf, 'Test_prop_with_text_empty_line_7', {}) | |
3242 call term_sendkeys(buf, "3ggic") | |
3243 call VerifyScreenDump(buf, 'Test_prop_with_text_empty_line_8', {}) | |
3244 call term_sendkeys(buf, "\<Esc>/aaa\\nc\\%V\<CR>") | |
3245 call VerifyScreenDump(buf, 'Test_prop_with_text_empty_line_9', {}) | |
3238 | 3246 |
3239 call StopVimInTerminal(buf) | 3247 call StopVimInTerminal(buf) |
3240 endfunc | 3248 endfunc |
3241 | 3249 |
3242 func Test_props_with_text_after_wraps() | 3250 func Test_props_with_text_after_wraps() |