summaryrefslogtreecommitdiff
path: root/src/typval.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 9.0.1396: sort(list, 'N') does not work in Vim9 script contextv9.0.1396Bram Moolenaar2023-03-091-5/+21
| | | | | Problem: sort(list, 'N') does not work in Vim9 script context. Solution: Convert string to number without giving an error. (closes #12061)
* patch 9.0.1380: CTRL-X on 2**64 subtracts twov9.0.1380Bram Moolenaar2023-03-041-2/+2
| | | | | Problem: CTRL-X on 2**64 subtracts two. (James McCoy) Solution: Correct computation for large number. (closes #12103)
* patch 9.0.1245: code is indented more than necessaryv9.0.1245Yegappan Lakshmanan2023-01-251-102/+102
| | | | | | Problem: Code is indented more than necessary. Solution: Use an early return where it makes sense. (Yegappan Lakshmanan, closes #11879)
* patch 9.0.1134: comparing objects uses identity instead of equalityv9.0.1134Bram Moolenaar2023-01-021-2/+92
| | | | | Problem: Comparing objects uses identity instead of equality. Solution: Compare the object values.
* patch 9.0.1095: using freed memory when declaration failsv9.0.1095Bram Moolenaar2022-12-251-0/+2
| | | | | Problem: Using freed memory when declaration fails. (Yegappan Lakshmanan) Solution: After unreferencing an object set the reference to NULL.
* patch 9.0.1035: object members are not being marked as usedv9.0.1035Bram Moolenaar2022-12-081-2/+2
| | | | | | Problem: Object members are not being marked as used, garbage collection may free them. Solution: Mark object members as used. Fix reference counting.
* patch 9.0.1031: Vim9 class is not implemented yetv9.0.1031Bram Moolenaar2022-12-081-0/+46
| | | | | Problem: Vim9 class is not implemented yet. Solution: Add very basic class support.
* patch 9.0.0978: build errors without the +channel featurev9.0.0978Bram Moolenaar2022-11-301-0/+10
| | | | | Problem: Build errors without the +channel feature. (John Marriott) Solution: Adjust #ifdefs.
* patch 9.0.0828: various typosv9.0.0828dundargoc2022-11-021-4/+4
| | | | | Problem: Various typos. Solution: Correct typos. (closes #11432)
* patch 9.0.0715: wrong argument for append() gives two error messagesv9.0.0715Bram Moolenaar2022-10-101-1/+3
| | | | | | Problem: Wrong argument for append() gives two error messages. Solution: When getting an error for a number argument don't try using it as a string. (closes #11335)
* patch 9.0.0491: no good reason to build without the float featurev9.0.0491Bram Moolenaar2022-09-171-18/+0
| | | | | Problem: No good reason to build without the float feature. Solution: Remove configure check for float and "#ifdef FEAT_FLOAT".
* patch 9.0.0450: return value of argument check functions is inconsistentv9.0.0450zeertzjq2022-09-121-11/+12
| | | | | Problem: Return value of argument check functions is inconsistent. Solution: Return OK/FAIL instead of TRUE/FALSE. (closes #11112)
* patch 9.0.0430: cannot use repeat() with a blobv9.0.0430Bakudankun2022-09-091-0/+18
| | | | | Problem: Cannot use repeat() with a blob. Solution: Implement blob repeat. (closes #11090)
* patch 9.0.0345: error message for list argument could be clearerv9.0.0345Bram Moolenaar2022-09-011-0/+17
| | | | | Problem: Error message for list argument could be clearer. Solution: Include the argument number. (Yegappan Lakshmanan, closes #11027)
* patch 9.0.0335: checks for Dictionary argument often give a vague errorv9.0.0335Yegappan Lakshmanan2022-08-301-1/+18
| | | | | Problem: Checks for Dictionary argument often give a vague error message. Solution: Give a useful error message. (Yegappan Lakshmanan, closes #11009)
* patch 9.0.0104: going beyond allocated memory when evaluating string constantv9.0.0104Bram Moolenaar2022-07-291-0/+12
| | | | | Problem: Going beyond allocated memory when evaluating string constant. Solution: Properly skip over <Key> form.
* patch 8.2.4934: string interpolation fails when not evaluatingv8.2.4934Bram Moolenaar2022-05-101-1/+1
| | | | | Problem: String interpolation fails when not evaluating. Solution: Skip the expression when not evaluating. (closes #10398)
* patch 8.2.4930: interpolated string expression requires escapingv8.2.4930Bram Moolenaar2022-05-101-32/+124
| | | | | Problem: Interpolated string expression requires escaping. Solution: Do not require escaping in the expression.
* patch 8.2.4928: various white space and cosmetic mistakesv8.2.4928Bram Moolenaar2022-05-091-1/+1
| | | | | Problem: Various white space and cosmetic mistakes. Solution: Change spaces to tabs, improve comments.
* patch 8.2.4883: string interpolation only works in heredocv8.2.4883LemonBoy2022-05-061-0/+26
| | | | | | Problem: String interpolation only works in heredoc. Solution: Support interpolated strings. Use syntax for heredoc consistent with strings, similar to C#. (closes #10327)
* patch 8.2.4861: it is not easy to restore saved mappingsv8.2.4861Ernie Rael2022-05-041-0/+14
| | | | | Problem: It is not easy to restore saved mappings. Solution: Make mapset() accept a dict argument. (Ernie Rael, closes #10295)
* patch 8.2.4858: K_SPECIAL may be escaped twicev8.2.4858zeertzjq2022-05-021-5/+4
| | | | | Problem: K_SPECIAL may be escaped twice. Solution: Avoid double escaping. (closes #10340)
* patch 8.2.4634: Vim9: cannot initialize a variable to null_listv8.2.4634Bram Moolenaar2022-03-271-1/+14
| | | | | | Problem: Vim9: cannot initialize a variable to null_list. Solution: Give negative count to NEWLIST. (closes #10027) Also fix inconsistencies in comparing with null values.
* patch 8.2.4576: Vim9: error for comparing with null can be annoyingv8.2.4576Bram Moolenaar2022-03-151-6/+3
| | | | | Problem: Vim9: error for comparing with null can be annoying. Solution: Allow comparing anything with null. (closes #9948)
* patch 8.2.4534: Vim9: "is" operator with empty string and null returns truev8.2.4534Bram Moolenaar2022-03-101-2/+16
| | | | | Problem: Vim9: "is" operator with empty string and null returns true. Solution: Consider empty string and null to be different for "is".
* patch 8.2.4530: making comparison with null work changes legacy behaviorv8.2.4530Bram Moolenaar2022-03-091-1/+4
| | | | | Problem: Making comparison with null work changes legacy behavior. Solution: Only use the better comparison in Vim9 script. (closes #9910)
* patch 8.2.4489: failing test for comparing v:null with numberv8.2.4489Bram Moolenaar2022-03-021-0/+9
| | | | | | Problem: Failing test for comparing v:null with number. Solution: Allow comparing v:null with number in legacy script. (Ken Takata, closes #9873) Also do this for float.
* patch 8.2.4488: build error with +eval but without +channel or +jobv8.2.4488Bram Moolenaar2022-03-011-0/+4
| | | | | Problem: Build error with +eval but without +channel or +job. Solution: Add #ifdef. (John Marriott)
* patch 8.2.4487: Vim9: cannot compare with v:nullv8.2.4487Bram Moolenaar2022-03-011-0/+44
| | | | | Problem: Vim9: cannot compare with v:null. Solution: Allow comparing anything with v:null. (closes #9866)
* patch 8.2.4046: some error messages not in the right placev8.2.4046Bram Moolenaar2022-01-081-1/+1
| | | | | Problem: Some error messages not in the right place. Solution: Adjust the errors file. Fix typo.
* patch 8.2.4038: various code not used when features are disabledv8.2.4038Dominique Pelle2022-01-081-0/+4
| | | | | Problem: Various code not used when features are disabled. Solution: Add #ifdefs. (Dominique Pellé, closes #9491)
* patch 8.2.4012: error messages are spread outv8.2.4012Bram Moolenaar2022-01-051-14/+14
| | | | | Problem: Error messages are spread out. Solution: Move the last error messages to errors.h.
* patch 8.2.4010: error messages are spread outv8.2.4010Bram Moolenaar2022-01-051-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.4008: error messages are spread outv8.2.4008Bram Moolenaar2022-01-051-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.4005: error messages are spread outv8.2.4005Bram Moolenaar2022-01-041-10/+10
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.4003: error messages are spread outv8.2.4003Bram Moolenaar2022-01-041-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3985: error messages are spread outv8.2.3985Bram Moolenaar2022-01-021-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3971: build failsv8.2.3971Bram Moolenaar2022-01-011-1/+1
| | | | | Problem: Build fails. Solution: Use the right error message name.
* patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar2022-01-011-1/+1
| | | | | Problem: Error messages are spread out. Solution: Move more errors to errors.h.
* patch 8.2.3919: Vim9: wrong argument for append() results in two errorsv8.2.3919Bram Moolenaar2021-12-281-1/+3
| | | | | | Problem: Vim9: wrong argument for append() results in two errors. Solution: Check did_emsg. Also for setline(). Adjust the help for appendbufline().
* patch 8.2.3894: Vim9: no proper type check for first argument of call()v8.2.3894Bram Moolenaar2021-12-251-0/+17
| | | | | Problem: Vim9: no proper type check for first argument of call(). Solution: Add specific type check.
* patch 8.2.3877: function does not abort after a type error in comparev8.2.3877Bram Moolenaar2021-12-221-6/+29
| | | | | Problem: Function does not abort after a type error in compare Solution: Check getting number fails. (closes #9384)
* patch 8.2.3851: Vim9: overhead when comparing string, dict or functionv8.2.3851Bram Moolenaar2021-12-191-161/+269
| | | | | | Problem: Vim9: overhead when comparing string, dict or function. Solution: Call the intented compare function directly. Refactor to avoid duplicated code.
* patch 8.2.3848: cannot use reduce() for a stringv8.2.3848rbtnn2021-12-181-8/+19
| | | | | Problem: Cannot use reduce() for a string. Solution: Make reduce() work with a string. (Naruhiko Nishino, closes #9366)
* patch 8.2.3840: useless test for negative index in check functionsv8.2.3840rbtnn2021-12-171-72/+17
| | | | | | Problem: Useless test for negative index in check functions. Solution: Remove the test for negative index. (Naruhiko Nishino, closes #9364)
* patch 8.2.3830: error messages are spread outv8.2.3830Bram Moolenaar2021-12-161-4/+4
| | | | | Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
* patch 8.2.3822: leaking memory in map() and filter(), no string in Vim9v8.2.3822Bram Moolenaar2021-12-161-0/+22
| | | | | | | Problem: Leaking memory in map() and filter(), cannot use a string argument in Vim9 script. Solution: Fix the leak, adjust the argument check, also run the tests as Vim9 script. (Yegappan Lakshmanan, closes #9354)
* patch 8.2.3751: cannot assign a lambda to an option that takes a functionv8.2.3751Yegappan Lakshmanan2021-12-061-3/+3
| | | | | | Problem: Cannot assign a lambda to an option that takes a function. Solution: Automatically convert the lambda to a string. (Yegappan Lakshmanan, closes #9286)
* patch 8.2.3702: first key in dict is seen as curly expression and failsv8.2.3702Bram Moolenaar2021-11-301-1/+2
| | | | | Problem: First key in dict is seen as curly expression and fails. Solution: Ignore failure of curly expression. (closes #9247)
* patch 8.2.3438: cannot manipulate blobsv8.2.3438Yegappan Lakshmanan2021-09-141-0/+17
| | | | | | Problem: Cannot manipulate blobs. Solution: Add blob2list() and list2blob(). (Yegappan Lakshmanan, closes #8868)