Mercurial > vim
diff runtime/doc/textprop.txt @ 29816:bbe62ea78aac v9.0.0247
patch 9.0.0247: cannot add padding to virtual text without highlight
Commit: https://github.com/vim/vim/commit/f396ce83eebf6c61596184231d39ce4d41eeac04
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 23 18:39:37 2022 +0100
patch 9.0.0247: cannot add padding to virtual text without highlight
Problem: Cannot add padding to virtual text without highlight.
Solution: Add the "text_padding_left" argument. (issue https://github.com/vim/vim/issues/10906)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 23 Aug 2022 19:45:05 +0200 |
parents | 2acb87ee55fc |
children | b15334beeaa4 |
line wrap: on
line diff
--- a/runtime/doc/textprop.txt +++ b/runtime/doc/textprop.txt @@ -126,6 +126,7 @@ prop_add({lnum}, {col}, {props}) If {col} is invalid an error is given. *E964* {props} is a dictionary with these fields: + type name of the text property type length length of text in bytes, can only be used for a property that does not continue in another line; can be zero @@ -142,9 +143,10 @@ prop_add({lnum}, {col}, {props}) automatically to a negative number; otherwise zero is used text text to be displayed before {col}, or after the - line if {col} is zero + line if {col} is zero; prepend and/or append + spaces for padding with highlighting *E1294* - text_align when "text" is present and {col} is zero + text_align when "text" is present and {col} is zero; specifies where to display the text: after after the end of the line right right aligned in the window (unless @@ -152,14 +154,20 @@ prop_add({lnum}, {col}, {props}) line) below in the next screen line When omitted "after" is used. Only one - "right" property can fit in earch line. + "right" property can fit in each line, if + there are two ore more these will go in a + separate line (still right aligned). + text_padding_left *E1296* + used when "text" is present and {col} is zero; + padding between the end of the text line + (leftmost column for "below") and the virtual + text, not highlighted text_wrap when "text" is present and {col} is zero, specifies what happens if the text doesn't fit: wrap wrap the text to the next line truncate truncate the text to make it fit When omitted "truncate" is used. - type name of the text property type All fields except "type" are optional. It is an error when both "length" and "end_lnum" or "end_col"