]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): clarify when text properties are cleared
authorChristian Brabandt <cb@256bit.org>
Mon, 17 Jun 2024 11:17:58 +0000 (13:17 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 17 Jun 2024 11:17:58 +0000 (13:17 +0200)
related: #15030

Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/builtin.txt
runtime/doc/change.txt
runtime/doc/tags
runtime/doc/textprop.txt

index ff7078ea881ac2c38b048f274f9b1c44a7ec1971..9eab164526cb64864074b809f57aba776ae9abdf 100644 (file)
@@ -1,4 +1,4 @@
-*builtin.txt*  For Vim version 9.1.  Last change: 2024 Jun 14
+*builtin.txt*  For Vim version 9.1.  Last change: 2024 Jun 17
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -9485,7 +9485,8 @@ setfperm({fname}, {mode})                         *setfperm()* *chmod*
 setline({lnum}, {text})                                        *setline()*
                Set line {lnum} of the current buffer to {text}.  To insert
                lines use |append()|. To set lines in another buffer use
-               |setbufline()|.  Any text properties in {lnum} are cleared.
+               |setbufline()|.
+               Any text properties in {lnum} are cleared |text-prop-cleared|.
 
                {lnum} is used like with |getline()|.
                When {lnum} is just below the last line the {text} will be
index ff995fb1de3c8d6cbd3bba309f470613c1f7841f..50ff4ec99dea959fd0c9d85b3765aa6da0596265 100644 (file)
@@ -1413,6 +1413,8 @@ The next three commands always work on whole lines.
 :[range]m[ove] {address}                       *:m* *:mo* *:move* *E134*
                        Move the lines given by [range] to below the line
                        given by {address}.
+                       Any text properties in [range] are cleared
+                       |text-prop-cleared|.
 
 ==============================================================================
 6. Formatting text                                     *formatting*
index 3665fd3eefcd12940e8f3f27dae936d131320ae7..794fa0c71ba544ea72f7fb5ecb4925b8b1702aa6 100644 (file)
@@ -10698,6 +10698,7 @@ text-functions  usr_41.txt      /*text-functions*
 text-objects   motion.txt      /*text-objects*
 text-objects-changed   version5.txt    /*text-objects-changed*
 text-prop-changes      textprop.txt    /*text-prop-changes*
+text-prop-cleared      textprop.txt    /*text-prop-cleared*
 text-prop-functions    textprop.txt    /*text-prop-functions*
 text-prop-functions-details    textprop.txt    /*text-prop-functions-details*
 text-prop-intro        textprop.txt    /*text-prop-intro*
index a02a3d567d5e0443a6d6d6dc15ba8ab3c51f79f4..6b46e06df9a20ba9c27cce7191a8cb23f9e79f96 100644 (file)
@@ -530,7 +530,7 @@ callback update spelling mistakes in the changed text.  Vim will move the
 properties below the changed text, so that they still highlight the same text,
 thus you don't need to update these.
 
-
+                                                       *text-prop-cleared*
 Text property columns are not updated or copied: ~
 
 - When setting the line with |setline()| or through an interface, such as Lua,