summaryrefslogtreecommitdiffstats
path: root/src/dict.c
AgeCommit message (Collapse)Author
2024-01-13patch 9.1.0027: Vim is missing a foreach() funcv9.1.0027Ernie Rael
Problem: Vim is missing a foreach() func Solution: Implement foreach({expr1}, {expr2}) function, which applies {expr2} for each item in {expr1} without changing it (Ernie Rael) closes: #12166 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-12-14patch 9.0.2163: Vim9: type can be assigned to list/dictv9.0.2163Ernie Rael
Problem: Vim9: type can be assigned to list/dict Solution: Prevent assigning a `type` to a `list` or `dict` closes: #13683 Signed-off-by: Ernie Rael <errael@raelity.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-08-19patch 9.0.1745: Missing test coverage for blockwise Visual highlightv9.0.1745zeertzjq
Problem: Missing test coverage for blockwise Visual highlight with virtual that starts with a double-width char. Solution: Add a new virtual text to the test. Some other small fixes. closes: #12835 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-04-16patch 9.0.1459: typo in name of typev9.0.1459zeertzjq
Problem: Typo in name of type. Solution: Change funccal_T to funccall_T. (closes #12265)
2023-03-19patch 9.0.1416: crash when collection is modified when using filter()v9.0.1416Ernie Rael
Problem: Crash when collection is modified when using filter(). Solution: Lock the list/dict/blob. (Ernie Rael, closes #12183)
2023-03-07patch 9.0.1390: FOR_ALL_ macros are defined in an unexpected filev9.0.1390Yegappan Lakshmanan
Problem: FOR_ALL_ macros are defined in an unexpected file. Solution: Move FOR_ALL_ macros to macros.h. Add FOR_ALL_HASHTAB_ITEMS. (Yegappan Lakshmanan, closes #12109)
2023-01-09patch 9.0.1166: code is indented more than necessaryv9.0.1166Yegappan Lakshmanan
Problem: Code is indented more than necessary. Solution: Use an early return where it makes sense. (Yegappan Lakshmanan, closes #11792)
2023-01-02patch 9.0.1133: error message names do not match the itemsv9.0.1133Bram Moolenaar
Problem: Error message names do not match the items. Solution: Add "_str" when the text contains "%s".
2022-12-27patch 9.0.1105: code is indented too muchv9.0.1105Yegappan Lakshmanan
Problem: Code is indented too much. Solution: Use an early return. (Yegappan Lakshmanan, closes #11756)
2022-11-25patch 9.0.0949: crash when unletting a variable while listing variablesv9.0.0949Bram Moolenaar
Problem: Crash when unletting a variable while listing variables. Solution: Disallow changing a hashtable while going over the entries. (closes #11435)
2022-11-23patch 9.0.0926: Coverity warns for not using return value of dict_add()v9.0.0926Bram Moolenaar
Problem: Coverity warns for not using return value of dict_add(). Solution: When dict_add() fails then don't call hash_remove().
2022-11-22patch 9.0.0917: the WinScrolled autocommand event is not enoughv9.0.0917Bram Moolenaar
Problem: The WinScrolled autocommand event is not enough. Solution: Add WinResized and provide information about what changed. (closes #11576)
2022-11-05patch 9.0.0836: wrong error when using extend() with funcrefv9.0.0836zeertzjq
Problem: Wrong error when using extend() with funcref. Solution: Better check the variable type. (closes #11468, closes #11455)
2022-11-02patch 9.0.0828: various typosv9.0.0828dundargoc
Problem: Various typos. Solution: Correct typos. (closes #11432)
2022-09-28patch 9.0.0618: calling function for reduce() has too much overheadv9.0.0618Bram Moolenaar
Problem: Calling function for reduce() has too much overhead. Solution: Do not create a funccall_T every time.
2022-09-17patch 9.0.0491: no good reason to build without the float featurev9.0.0491Bram Moolenaar
Problem: No good reason to build without the float feature. Solution: Remove configure check for float and "#ifdef FEAT_FLOAT".
2022-09-07patch 9.0.0409: #{g:x} was seen as a curly-braces expressionv9.0.0409ii14
Problem: #{g:x} was seen as a curly-braces expression. Solution: Do never see #{} as a curly-braces expression. (closes #11075)
2022-08-30patch 9.0.0335: checks for Dictionary argument often give a vague errorv9.0.0335Yegappan Lakshmanan
Problem: Checks for Dictionary argument often give a vague error message. Solution: Give a useful error message. (Yegappan Lakshmanan, closes #11009)
2022-08-30patch 9.0.0331: cannot use items() on a stringv9.0.0331Bram Moolenaar
Problem: Cannot use items() on a string. Solution: Make items() work on a string. (closes #11016)
2022-08-30patch 9.0.0327: items() does not work on a listv9.0.0327Bram Moolenaar
Problem: items() does not work on a list. (Sergey Vlasov) Solution: Make items() work on a list. (closes #11013)
2022-07-23patch 9.0.0063: too many type casts for dict_get functionsv9.0.0063Bram Moolenaar
Problem: Too many type casts for dict_get functions. Solution: Change the key argument from "char_u *" to "char *".
2022-06-14patch 8.2.5089: some functions return a different value on failurev8.2.5089Yegappan Lakshmanan
Problem: Some functions return a different value on failure. Solution: Initialize the return value earlier. (Yegappan Lakshmanan, closes #10568)
2022-05-10patch 8.2.4930: interpolated string expression requires escapingv8.2.4930Bram Moolenaar
Problem: Interpolated string expression requires escaping. Solution: Do not require escaping in the expression.
2022-04-04patch 8.2.4683: verbose check with dict_find() to see if a key is presentv8.2.4683Yegappan Lakshmanan
Problem: Verbose check with dict_find() to see if a key is present. Solution: Add dict_has_key(). (Yegappan Lakshmanan, closes #10074)
2022-02-05patch 8.2.4301: Vim9: type error for copy of dictv8.2.4301Bram Moolenaar
Problem: Vim9: type error for copy of dict. Solution: Do not use dict<any> but no type. (closes #9696)
2022-02-02patch 8.2.4286: Vim9: strict type checking after copy() and deepcopy()v8.2.4286Bram Moolenaar
Problem: Vim9: strict type checking after copy() and deepcopy(). Solution: Allow type to change after making a copy. (closes #9644)
2022-01-08patch 8.2.4043: using int for second argument of ga_init2()v8.2.4043Bram Moolenaar
Problem: Using int for second argument of ga_init2(). Solution: Remove unnessary type cast (int) when using sizeof().
2022-01-04patch 8.2.4005: error messages are spread outv8.2.4005Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
2022-01-04patch 8.2.3997: Vim9: not enough testing for extend() and map()v8.2.3997Bram Moolenaar
Problem: Vim9: not enough testing for extend() and map(). Solution: Add more test cases. Fix uncovered problems. Remove unused type fields.
2022-01-04patch 8.2.3996: Vim9: type checking lacks information about declared typev8.2.3996Bram Moolenaar
Problem: Vim9: type checking for list and dict lacks information about declared type. Solution: Add dv_decl_type and lv_decl_type. Refactor the type stack to store two types in each entry.
2022-01-01patch 8.2.3970: error messages are spread outv8.2.3970Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2022-01-01patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-12-31patch 8.2.3961: error messages are spread outv8.2.3961Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-12-22patch 8.2.3875: gcc complains about buffer overrunv8.2.3875Bram Moolenaar
Problem: gcc complains about buffer overrun. Solution: Use mch_memmove() instead of STRCPY(). (John Marriott)
2021-12-22patch 8.2.3871: list.c contains code for dict and blobv8.2.3871Yegappan Lakshmanan
Problem: List.c contains code for dict and blob. Solution: Refactor to put code where it belongs. (Yegappan Lakshmanan, closes #9386)
2021-12-16patch 8.2.3830: error messages are spread outv8.2.3830Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
2021-11-30patch 8.2.3702: first key in dict is seen as curly expression and failsv8.2.3702Bram Moolenaar
Problem: First key in dict is seen as curly expression and fails. Solution: Ignore failure of curly expression. (closes #9247)
2021-11-22patch 8.2.3650: Vim9: for loop variable can be a list memberv8.2.3650Bram Moolenaar
Problem: Vim9: for loop variable can be a list member. Solution: Check for valid variable name. (closes #9179)
2021-09-06patch 8.2.3407: using uninitialized memory with "let g:['bar'] = 2"v8.2.3407Bram Moolenaar
Problem: Using uninitialized memory with "let g:['bar'] = 2". Solution: Initialize v_type of a new dict item.
2021-08-12patch 8.2.3335: Vim9: not enough tests run with Vim9v8.2.3335Bram Moolenaar
Problem: Vim9: not enough tests run with Vim9. Solution: Run a few more tests in Vim9 script and :def function. Fix that items(), keys() and values9) return zero for a NULL dict. Make join() return an empty string for a NULL list. Make sort() return an empty list for a NULL list.
2021-08-09patch 8.2.3320: some local functions are not staticv8.2.3320Yegappan Lakshmanan
Problem: Some local functions are not static. Solution: Add "static". Move snprintf() related code to strings.c. (Yegappan Lakshmanan, closes #8734)
2021-07-27patch 8.2.3229: Vim9: runtime and compile time type checks are not the samev8.2.3229Yegappan Lakshmanan
Problem: Vim9: runtime and compile time type checks are not the same. Solution: Add more runtime type checks for builtin functions. (Yegappan Lakshmanan, closes #8646)
2021-07-23patch 8.2.3206: Vim9: argument types are not checked at compile timev8.2.3206Yegappan Lakshmanan
Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8611)
2021-07-22patch 8.2.3200: Vim9: hard to guess where a type error is givenv8.2.3200Bram Moolenaar
Problem: Vim9: hard to guess where a type error is given. Solution: Add the function name where possible. (closes #8608)
2021-07-20patch 8.2.3188: Vim9: argument types are not checked at compile timev8.2.3188Yegappan Lakshmanan
Problem: Vim9: argument types are not checked at compile time. Solution: Add several more type checks, also at runtime. (Yegappan Lakshmanan, closes #8587)
2021-06-02patch 8.2.2921: E704 for script local variable is not backwards compatiblev8.2.2921Bram Moolenaar
Problem: E704 for script local variable is not backwards compatible. (Yasuhiro Matsumoto) Solution: Only give the error in Vim9 script. Also check for function-local variable.
2021-06-01patch 8.2.2920: still a way to shadow a builtin functionv8.2.2920Bram Moolenaar
Problem: Still a way to shadow a builtin function. (Yasuhiro Matsumoto) Solution: Check the key when using extend(). (issue #8302)
2021-02-11patch 8.2.2501: not always clear where an error is reportedv8.2.2501Bram Moolenaar
Problem: Not always clear where an error is reported. Solution: Add the where_T structure and pass it around. (closes #7796)
2021-02-07patch 8.2.2486: Vim9: some errors for white space do not show contextv8.2.2486Bram Moolenaar
Problem: Vim9: some errors for white space do not show context. Solution: Include the text at the error.
2021-02-07patch 8.2.2480: Vim9: some errors for white space do not show contextv8.2.2480Bram Moolenaar
Problem: Vim9: some errors for white space do not show context. Solution: Include the text at the error.