zeertzjq
ad0c442f1f
patch 9.0.1723: Fix regression in {func} argument of reduce()
...
Problem: Fix regression in {func} argument of reduce()
Solution: pass function name as string again
Before patch 9.0.0548, passing a string as {func} argument of reduce()
is treated as a function name, but after patch 9.0.0548 it is treated as
an expression instead, which is useless as reduce() doesn't set any v:
variables. This PR restores the behavior of {func} before that patch.
Also correct an emsg() call, as e_string_list_or_blob_required doesn't
contain format specifiers.
closes : #12824
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-08-17 22:15:47 +02:00
zeertzjq
7772c93a3e
patch 9.0.1715: duplicate test in message_test.c
...
Problem: duplicate test in message_test.c
Solution: Remove duplicate test and make functions static
closes : #12803
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-08-15 22:48:40 +02:00
Christ van Willegen
0c6181fec4
patch 9.0.1704: Cannot use positional arguments for printf()
...
Problem: Cannot use positional arguments for printf()
Solution: Support positional arguments in string formatting
closes : #12140
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Christ van Willegen <cvwillegen@gmail.com>
2023-08-13 18:06:00 +02:00
Yegappan Lakshmanan
95707037af
patch 9.0.1629: having utf16idx() rounding up is inconvenient
...
Problem: Having utf16idx() rounding up is inconvenient.
Solution: Make utf16idx() round down. (Yegappan Lakshmanan, closes #12523 )
2023-06-14 13:10:15 +01:00
Yegappan Lakshmanan
577922b917
patch 9.0.1617: charidx() result is not consistent with byteidx()
...
Problem: charidx() and utf16idx() result is not consistent with byteidx().
Solution: When the index is equal to the length of the text return the
lenght of the text instead of -1. (Yegappan Lakshmanan,
closes #12503 )
2023-06-08 17:09:45 +01:00
zeertzjq
8cf51376b8
patch 9.0.1524: passing -1 for bool is not always rejected
...
Problem: Passing -1 for bool is not always rejected.
Solution: Check for error in a better way. (closes #12358 )
2023-05-08 15:31:38 +01:00
Bram Moolenaar
e4098457ab
patch 9.0.1522: some functions give two error messages
...
Problem: Some functions give two error messages.
Solution: Do not give a second error message. (closes #12352 )
2023-05-07 18:53:49 +01:00
Yegappan Lakshmanan
03ff1c2dde
patch 9.0.1515: reverse() does not work for a String
...
Problem: reverse() does not work for a String.
Solution: Implement reverse() for a String. (Yegappan Lakshmanan,
closes #12179 )
2023-05-06 14:08:21 +01:00
Christian Brabandt
67672ef097
patch 9.0.1485: no functions for converting from/to UTF-16 index
...
Problem: no functions for converting from/to UTF-16 index.
Solution: Add UTF-16 flag to existing funtions and add strutf16len() and
utf16idx(). (Yegappan Lakshmanan, closes #12216 )
2023-04-24 21:09:54 +01:00
zeertzjq
e7d49465a4
patch 9.0.1459: typo in name of type
...
Problem: Typo in name of type.
Solution: Change funccal_T to funccall_T. (closes #12265 )
2023-04-16 20:53:55 +01:00
Bram Moolenaar
5fb78c3fa5
patch 9.0.1380: CTRL-X on 2**64 subtracts two
...
Problem: CTRL-X on 2**64 subtracts two. (James McCoy)
Solution: Correct computation for large number. (closes #12103 )
2023-03-04 20:47:39 +00:00
Yegappan Lakshmanan
6ec6666047
patch 9.0.1237: code is indented more than necessary
...
Problem: Code is indented more than necessary.
Solution: Use an early return where it makes sense. (Yegappan Lakshmanan,
closes #11858 )
2023-01-23 20:46:21 +00:00
Bram Moolenaar
c32949b077
patch 9.0.1144: reading beyond text
...
Problem: Reading beyond text.
Solution: Add strlen_maxlen() and use it.
2023-01-04 15:56:51 +00:00
Bram Moolenaar
82418263fa
patch 9.0.0618: calling function for reduce() has too much overhead
...
Problem: Calling function for reduce() has too much overhead.
Solution: Do not create a funccall_T every time.
2022-09-28 16:16:15 +01:00
Bram Moolenaar
f1c60d4bf1
patch 9.0.0548: reduce() with a compiled lambda could be faster
...
Problem: reduce() with a compiled lambda could be faster.
Solution: Call eval_expr_typval() instead of call_func() directly.
2022-09-22 17:07:00 +01:00
Bram Moolenaar
73e28dcc61
patch 9.0.0491: no good reason to build without the float feature
...
Problem: No good reason to build without the float feature.
Solution: Remove configure check for float and "#ifdef FEAT_FLOAT".
2022-09-17 21:08:33 +01:00
Yegappan Lakshmanan
8deb2b30c7
patch 9.0.0359: error message for wrong argument type is not specific
...
Problem: Error message for wrong argument type is not specific.
Solution: Include more information in the error. (Yegappan Lakshmanan,
closes #11037 )
2022-09-02 15:15:27 +01:00
Bram Moolenaar
dd7eff0a75
patch 8.2.4878: valgrind warning for using uninitialized variable
...
Problem: Valgrind warning for using uninitialized variable.
Solution: Initialize the type of newtv.
2022-05-06 11:02:05 +01:00
Bram Moolenaar
424bcae1fb
patch 8.2.4273: the EBCDIC support is outdated
...
Problem: The EBCDIC support is outdated.
Solution: Remove the EBCDIC support.
2022-01-31 14:59:41 +00:00
Bram Moolenaar
04935fb17e
patch 8.2.4043: using int for second argument of ga_init2()
...
Problem: Using int for second argument of ga_init2().
Solution: Remove unnessary type cast (int) when using sizeof().
2022-01-08 16:19:22 +00:00
Bram Moolenaar
9d00e4a814
patch 8.2.4010: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-05 17:49:15 +00:00
Bram Moolenaar
677658ae49
patch 8.2.4008: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-05 16:09:06 +00:00
Bram Moolenaar
e70cec9760
patch 8.2.3968: build failure
...
Problem: Build failure.
Solution: Add missing changes.
2022-01-01 14:25:55 +00:00
Bram Moolenaar
436b5adc97
patch 8.2.3961: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2021-12-31 22:49:24 +00:00
Dominique Pelle
af4a61a85d
patch 8.2.3914: various spelling mistakes in comments
...
Problem: Various spelling mistakes in comments.
Solution: Fix the mistakes. (Dominique Pellé, closes #9416 )
2021-12-27 17:21:41 +00:00
Yegappan Lakshmanan
27708e6c7b
patch 8.2.3908: cannot use a script-local function for 'foldtext'
...
Problem: Cannot use a script-local function for 'foldtext'.
Solution: Expand "s:" and "<SID>". (Yegappan Lakshmanan, closes #9411 )
2021-12-26 21:54:43 +00:00
Yegappan Lakshmanan
f973eeb491
patch 8.2.3871: list.c contains code for dict and blob
...
Problem: List.c contains code for dict and blob.
Solution: Refactor to put code where it belongs. (Yegappan Lakshmanan,
closes #9386 )
2021-12-22 18:19:26 +00:00
presuku
1f2453fec6
patch 8.2.3663: using %S in printf() does not work correctly
...
Problem: Using %S in printf() does not work correctly.
Solution: Fix the problem and add more tests. (closes #9208 )
2021-11-24 15:32:57 +00:00
presuku
d85fccdfed
patch 8.2.3630: printf() with %S does not handle multi-byte correctly
...
Problem: Printf() with %S does not handle multi-byte correctly.
Solution: Count cells instead of bytes. (closes #9169 , closes #7486 )
2021-11-20 19:38:31 +00:00
Bram Moolenaar
6631597452
patch 8.2.3393: escaping for fish shell is skipping some characters
...
Problem: Escaping for fish shell is skipping some characters.
Solution: Escape character after backslash if needed. (Jason Cox,
closes #8827 )
2021-09-01 14:31:51 +02:00
Dominique Pelle
de05ae7158
patch 8.2.3387: compiler warning for non-static function
...
Problem: Compiler warning for non-static function.
Solution: Make the function static. (Dominique Pellé, closes #8816 )
2021-08-30 19:57:34 +02:00
Jason Cox
6e82351130
patch 8.2.3385: escaping for fish shell does not work properly
...
Problem: Escaping for fish shell does not work properly.
Solution: Insert a backslash before a backslash. (Jason Cox, closes #8810 )
2021-08-29 12:36:49 +02:00
Yegappan Lakshmanan
8ee52affe7
patch 8.2.3320: some local functions are not static
...
Problem: Some local functions are not static.
Solution: Add "static". Move snprintf() related code to strings.c.
(Yegappan Lakshmanan, closes #8734 )
2021-08-09 19:59:06 +02:00
Yegappan Lakshmanan
4490ec4e83
patch 8.2.3229: Vim9: runtime and compile time type checks are not the same
...
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-27 22:00:44 +02:00
Yegappan Lakshmanan
83494b4ac6
patch 8.2.3188: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks, also at runtime. (Yegappan
Lakshmanan, closes #8587 )
2021-07-20 17:51:51 +02:00
Yegappan Lakshmanan
a9a7c0c602
patch 8.2.3173: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add more type checks. (Yegappan Lakshmanan, closes #8581 )
2021-07-17 19:11:07 +02:00
Yegappan Lakshmanan
1a71d31bf3
patch 8.2.3162: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types are not checked at compile time.
Solution: Add more type checks. (Yegappan Lakshmanan, closes #8560 )
2021-07-15 12:49:58 +02:00
Yegappan Lakshmanan
a2438132a6
patch 8.2.3139: functions for string manipulation are spread out
...
Problem: Functions for string manipulation are spread out.
Solution: Move string related functions to a new source file. (Yegappan
Lakshmanan, closes #8470 )
2021-07-10 21:29:18 +02:00