Mercurial > vim
comparison src/testdir/test_textprop.vim @ 29643:b54dfe92ee10 v9.0.0162
patch 9.0.0162: text property "below" gets indent if 'breakindent' is set
Commit: https://github.com/vim/vim/commit/73c3842fa54aa99e59b897b6ff1e69e800fe9cd3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 7 11:53:40 2022 +0100
patch 9.0.0162: text property "below" gets indent if 'breakindent' is set
Problem: Text property "below" gets indent if 'breakindent' is set. (Tim
Pope)
Solution: Do not put indent before text property. (closes #10859)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 07 Aug 2022 13:00:15 +0200 |
parents | 592818fd3110 |
children | 9cd050914eb6 |
comparison
equal
deleted
inserted
replaced
29642:d2b2f8b68e22 | 29643:b54dfe92ee10 |
---|---|
2310 func Test_props_with_text_after() | 2310 func Test_props_with_text_after() |
2311 CheckRunVimInTerminal | 2311 CheckRunVimInTerminal |
2312 | 2312 |
2313 let lines =<< trim END | 2313 let lines =<< trim END |
2314 set showbreak=+++ | 2314 set showbreak=+++ |
2315 call setline(1, 'some text here and other text there') | 2315 set breakindent |
2316 call setline(1, ' some text here and other text there') | |
2316 call prop_type_add('rightprop', #{highlight: 'ErrorMsg'}) | 2317 call prop_type_add('rightprop', #{highlight: 'ErrorMsg'}) |
2317 call prop_type_add('afterprop', #{highlight: 'Search'}) | 2318 call prop_type_add('afterprop', #{highlight: 'Search'}) |
2318 call prop_type_add('belowprop', #{highlight: 'DiffAdd'}) | 2319 call prop_type_add('belowprop', #{highlight: 'DiffAdd'}) |
2319 call prop_add(1, 0, #{type: 'rightprop', text: ' RIGHT ', text_align: 'right'}) | 2320 call prop_add(1, 0, #{type: 'rightprop', text: ' RIGHT ', text_align: 'right'}) |
2320 call prop_add(1, 0, #{type: 'afterprop', text: "\tAFTER\t", text_align: 'after'}) | 2321 call prop_add(1, 0, #{type: 'afterprop', text: "\tAFTER\t", text_align: 'after'}) |