Skip to content

Commit 5647c91

Browse files
committed
runtime(doc): add reference to extendnew() at extend()
related: #16607 Signed-off-by: Christian Brabandt <[email protected]>
1 parent 778ada4 commit 5647c91

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

runtime/doc/builtin.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim version 9.1. Last change: 2025 Feb 06
1+
*builtin.txt* For Vim version 9.1. Last change: 2025 Feb 17
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3006,7 +3006,8 @@ extend({expr1}, {expr2} [, {expr3}]) *extend()*
30063006
When {expr3} is omitted then "force" is assumed.
30073007

30083008
{expr1} is changed when {expr2} is not empty. If necessary
3009-
make a copy of {expr1} first.
3009+
make a copy of {expr1} first or use |extendnew()| to return a
3010+
new List/Dictionary.
30103011
{expr2} remains unchanged.
30113012
When {expr1} is locked and {expr2} is not empty the operation
30123013
fails.

0 commit comments

Comments
 (0)