Mercurial > vim
comparison runtime/doc/builtin.txt @ 34288:6df143135376 v9.1.0080
patch 9.1.0080: unexpected error for modifying final list using +=
Commit: https://github.com/vim/vim/commit/1af35631f85d2fcdc83c5d457af8273697f5146a
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Tue Feb 6 11:03:36 2024 +0100
patch 9.1.0080: unexpected error for modifying final list using +=
Problem: unexpected error for modifying final list using += operator
(Ernie Rael)
Solution: Allow List value modification of a final variable using +=
operator
(Yegappan Lakshmanan)
fixes: #13745
fixes: #13959
closes: #13962
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 06 Feb 2024 11:15:05 +0100 |
parents | cce6b834635c |
children | 6d9f59e88fc2 |
comparison
equal
deleted
inserted
replaced
34287:4fb3789423a3 | 34288:6df143135376 |
---|---|
2091 For more information about these options, refer to 'diffopt'. | 2091 For more information about these options, refer to 'diffopt'. |
2092 | 2092 |
2093 Returns an empty List or String if {fromlist} and {tolist} are | 2093 Returns an empty List or String if {fromlist} and {tolist} are |
2094 identical. | 2094 identical. |
2095 | 2095 |
2096 Examples: | 2096 Examples: > |
2097 :echo diff(['abc'], ['xxx']) | 2097 :echo diff(['abc'], ['xxx']) |
2098 @@ -1 +1 @@ | 2098 @@ -1 +1 @@ |
2099 -abc | 2099 -abc |
2100 +xxx | 2100 +xxx |
2101 | 2101 |
2102 :echo diff(['abc'], ['xxx'], {'output': 'indices'}) | 2102 :echo diff(['abc'], ['xxx'], {'output': 'indices'}) |
2103 [{'from_idx': 0, 'from_count': 1, 'to_idx': 0, 'to_count': 1}] | 2103 [{'from_idx': 0, 'from_count': 1, 'to_idx': 0, 'to_count': 1}] |
2104 :echo diff(readfile('oldfile'), readfile('newfile')) | 2104 :echo diff(readfile('oldfile'), readfile('newfile')) |
2105 :echo diff(getbufline(5, 1, '$'), getbufline(6, 1, '$')) | 2105 :echo diff(getbufline(5, 1, '$'), getbufline(6, 1, '$')) |
2106 | 2106 < |
2107 For more examples, refer to |diff-func-examples| | 2107 For more examples, refer to |diff-func-examples| |
2108 | 2108 |
2109 Can also be used as a |method|: > | 2109 Can also be used as a |method|: > |
2110 GetFromList->diff(to_list) | 2110 GetFromList->diff(to_list) |
2111 < | 2111 < |