Bram Moolenaar
3a846e6bca
patch 8.2.3972: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move the last errors from globals.h to errors.h.
2022-01-01 16:21:00 +00:00
Bram Moolenaar
74409f6279
patch 8.2.3970: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2022-01-01 15:58:22 +00:00
Bram Moolenaar
460ae5dfca
patch 8.2.3967: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2022-01-01 14:19:49 +00:00
Bram Moolenaar
b79ee0c299
patch 8.2.3965: Vim9: no easy way to check if Vim9 script is supported
...
Problem: Vim9: no easy way to check if Vim9 script is supported.
Solution: Add has('vim9script').
2022-01-01 12:17:00 +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
zeertzjq
4b1478093e
patch 8.2.3956: duplicate assignment
...
Problem: Duplicate assignment.
Solution: Remove the second assignment. (closes #9442 )
2021-12-31 15:21:53 +00:00
Bram Moolenaar
ef8f04b1d1
patch 8.2.3911: Vim9: type check for filter() does not accept unknown
...
Problem: Vim9: type check for filter() does not accept unknown.
Solution: Also accept unknown for the return type. (closes #9413 )
2021-12-27 12:29:19 +00:00
Bram Moolenaar
7319981f21
patch 8.2.3904: Vim9: skip expression type is not checked at compile time
...
Problem: Vim9: skip expression type is not checked at compile time.
Solution: Add argument type checks.
2021-12-26 17:18:14 +00:00
Bram Moolenaar
ec86520f94
patch 8.2.3899: Vim9: test for map() on string fails
...
Problem: Vim9: test for map() on string fails.
Solution: Expect string return type.
2021-12-25 22:10:42 +00:00
Bram Moolenaar
1802405d71
patch 8.2.3897: Vim9: second argument of map() and filter() not checked
...
Problem: Vim9: the second argument of map() and filter() is not checked at
compile time.
Solution: Add more specific type check for the second argument.
2021-12-25 21:43:28 +00:00
Bram Moolenaar
ae1068afde
patch 8.2.3895: Vim9: confusing error when using function() with a number
...
Problem: Vim9: confusing error when using function() with a number.
Solution: Check for a function or string argument.
2021-12-25 19:43:44 +00:00
Bram Moolenaar
223d0a6bc8
patch 8.2.3894: Vim9: no proper type check for first argument of call()
...
Problem: Vim9: no proper type check for first argument of call().
Solution: Add specific type check.
2021-12-25 19:29:21 +00:00
Yegappan Lakshmanan
e7f4abd38b
patch 8.2.3889: duplicate code for translating script-local function name
...
Problem: Duplicate code for translating script-local function name.
Solution: Move the code to get_scriptlocal_funcname(). (Yegappan Lakshmanan,
closes #9393 )
2021-12-24 20:47:38 +00:00
zeertzjq
d3f00f54bf
patch 8.2.3882: more duplicated code in f_getreginfo()
...
Problem: More duplicated code in f_getreginfo().
Solution: Also use getreg_get_regname(). (closes #9398 )
2021-12-24 12:02:43 +00:00
Bram Moolenaar
51e64b2789
patch 8.2.3879: getreg() and getregtype() contain dead code
...
Problem: getreg() and getregtype() contain dead code.
Solution: Remove the needless check. (closes #9392 ) Also refactor to put
common code in a shared function.
2021-12-24 10:48:30 +00:00
Bram Moolenaar
080182216e
patch 8.2.3872: Vim9: finddir() and uniq() return types can be more specific
...
Problem: Vim9: finddir() and uniq() return types can be more specific.
Solution: Adjust the return type.
2021-12-22 18:45:37 +00:00
Bram Moolenaar
59618fed4c
patch 8.2.3866: Vim9: type checking global variables is inconsistent
...
Problem: Vim9: type checking global variables is inconsistent.
Solution: Use the "unknown" type in more places.
2021-12-21 12:32:17 +00:00
Bram Moolenaar
2f9f4ccfc8
patch 8.2.3857: Vim9: inconsistent error for using function()
...
Problem: Vim9: inconsistent error for using function().
Solution: Use a runtime type check for the result of function().
(closes #8492 )
2021-12-20 09:36:27 +00:00
rbtnn
0ccb5842f5
patch 8.2.3848: cannot use reduce() for a string
...
Problem: Cannot use reduce() for a string.
Solution: Make reduce() work with a string. (Naruhiko Nishino, closes #9366 )
2021-12-18 18:33:46 +00:00
Bram Moolenaar
e124204c4f
patch 8.2.3830: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2021-12-16 20:56:57 +00:00
Bram Moolenaar
2d877599ee
patch 8.2.3822: leaking memory in map() and filter(), no string in Vim9
...
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 )
2021-12-16 08:21:09 +00:00
Bram Moolenaar
739f13a55b
patch 8.2.3795: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate the jumplist feature.
2021-12-13 13:12:53 +00:00
Bram Moolenaar
eba3b7f664
patch 8.2.3705: cannot pass a lambda name to function() or funcref()
...
Problem: Cannot pass a lambda name to function() or funcref(). (Yegappan
Lakshmanan)
Solution: Handle a lambda name differently.
2021-11-30 18:25:08 +00:00
Bram Moolenaar
651fca85c7
patch 8.2.3699: the +title feature adds a lot of #ifdef but little code
...
Problem: The +title feature adds a lot of #ifdef but little code.
Solution: Graduate the +title feature.
2021-11-29 20:39:38 +00:00
Yegappan Lakshmanan
d1a8d658e1
patch 8.2.3578: manipulating highlighting is complicated
...
Problem: Manipulating highlighting is complicated.
Solution: Add the hlget() and hlset() functions. (Yegappan Lakshmanan,
closes #9039 )
2021-11-03 21:56:45 +00:00
Sean Dewar
a63780b977
patch 8.2.3576: some functions are not documented for use with a method
...
Problem: Some functions are not documented for use with a method.
Solution: Add examples. Fix that sign_unplacelist() only takes one
argument. (Sean Dewar, closes #9081 )
2021-11-03 13:15:47 +00:00
Bram Moolenaar
21c1a0c2f1
patch 8.2.3530: ":buf \{a}" fails while ":edit \{a}" works
...
Problem: ":buf \{a}" fails while ":edit \{a}" works.
Solution: Unescape "\{". (closes #8917 )
2021-10-17 17:20:23 +01:00
Leah Neukirchen
0a7984af56
patch 8.2.3510: changes are only detected with one second accuracy
...
Problem: Changes are only detected with one second accuracy.
Solution: Use the nanosecond time if possible. (Leah Neukirchen,
closes #8873 , closes #8875 )
2021-10-14 21:27:55 +01:00
Yegappan Lakshmanan
f8dbd58666
patch 8.2.3456: Vim9: not all functions are tested with empty string argument
...
Problem: Vim9: Not all functions are tested with an empty string argument.
Solution: Add tests with empty strings. (Yegappan Lakshmanan, closes #8915 )
2021-09-26 19:04:05 +01:00
Yegappan Lakshmanan
5dfe467432
patch 8.2.3438: cannot manipulate blobs
...
Problem: Cannot manipulate blobs.
Solution: Add blob2list() and list2blob(). (Yegappan Lakshmanan,
closes #8868 )
2021-09-14 17:54:30 +02:00
Yegappan Lakshmanan
fc3b775055
patch 8.2.3415: Vim9: not all function argument types are properly checked
...
Problem: Vim9: Not all function argument types are properly checked.
Solution: Add and improve argument type checks. (Yegappan Lakshmanan,
closes #8839 )
2021-09-08 14:57:42 +02:00
Bram Moolenaar
10c83dde55
patch 8.2.3401: Vim9: cannot use negative count with finddir() and findfile()
...
Problem: Vim9: cannot use a negative count with finddir() and findfile().
Solution: Adjust the return type. (closes #8776 )
2021-09-04 14:49:56 +02:00
Bram Moolenaar
87e1587b8a
patch 8.2.3396: when libcall() fails invalid pointer may be used
...
Problem: When libcall() fails invalid pointer may be used.
Solution: Initialize the string to NULL. (Yasuhiro Matsumoto, closes #8829 )
2021-09-02 19:53:07 +02:00
Bram Moolenaar
60b6e6f6cc
patch 8.2.3380: crash when using NULL string for funcref()
...
Problem: Crash when using NULL string for funcref().
Solution: Check for NULL argument. (issue #8260 )
2021-08-28 12:49:27 +02:00
naohiro ono
5aec755b67
patch 8.2.3360: user function completion fails with dict function
...
Problem: User function completion fails with dict function.
Solution: Do not stop sequencing through the list if user functions when
encountering an empty name. (Naohiro Ono, closes #8765 ,
closes #8774 )
2021-08-19 21:20:41 +02:00
Yegappan Lakshmanan
ccfb7c6758
patch 8.2.3356: adding many text properties requires a lot of function calls
...
Problem: Adding many text properties requires a lot of function calls.
Solution: Add the prop_add_list() function. (Yegappan Lakshmanan,
closes #8751 )
2021-08-16 21:39:09 +02:00
Bram Moolenaar
069f90852f
patch 8.2.3337: completing "call g:" returns entries with just "g:"
...
Problem: Completing "call g:" returns entries with just "g:". (Naohiro Ono)
Solution: Skip empty strings returned by get_user_func_name(). (closes #8753 )
2021-08-13 17:48:25 +02:00
Bram Moolenaar
bd77aa9274
patch 8.2.3334: Vim9: not enough tests run with Vim9
...
Problem: Vim9: not enough tests run with Vim9.
Solution: Run a few more tests in Vim9 script and :def function. Fix
islocked(). Fix error for locking local variable.
2021-08-12 17:06:05 +02:00
Bram Moolenaar
80a070c361
patch 8.2.3316: float test fails
...
Problem: Float test fails.
Solution: Add missing change.
2021-08-08 15:51:10 +02:00
Bram Moolenaar
267359902c
patch 8.2.3314: behavior of exists() in a :def function is unpredictable
...
Problem: Behavior of exists() in a :def function is unpredictable.
Solution: Add exists_compiled().
2021-08-08 14:43:22 +02:00
Yegappan Lakshmanan
11328bc7df
patch 8.2.3300: Lua: can only execute on Vim command at a time
...
Problem: Lua: can only execute on Vim command at a time. Not easy to get
the Vim version.
Solution: Make vim.command() accept multiple lines. Add vim.version().
(Yegappan Lakshmanan, closes #8716 )
2021-08-06 21:34:38 +02:00
Bram Moolenaar
5671f3f076
patch 8.2.3299: Vim9: exists() does not handle much at compile time
...
Problem: Vim9: exists() does not handle much at compile time.
Solution: Handle variable names. (closes #8688 )
2021-08-05 22:48:11 +02:00
Bram Moolenaar
bb7ee7abe1
patch 8.2.3276: Vim9: exists() can only be evaluated at runtime
...
Problem: Vim9: exists() can only be evaluated at runtime.
Solution: Evaluate at compile time for option name literals. (closes #8437 )
2021-08-02 20:06:50 +02:00
Bram Moolenaar
f78da4f9d6
patch 8.2.3269: Vim9: wrong argument check for partial
...
Problem: Vim9: wrong argument check for partial. (Naohiro Ono)
Solution: Handle getting return type without arguments. Correct the minimal
number of arguments for what is included in the partial.
(closes #8667 )
2021-08-01 15:40:31 +02:00
Bram Moolenaar
1780f08ba4
patch 8.2.3261: Vim9: when compiling repeat(123, N) return type is number
...
Problem: Vim9: when compiling repeat(123, N) return type is number.
Solution: Make return type a string. (closes #8664 )
2021-07-31 22:03:59 +02:00
Yegappan Lakshmanan
4a15504e91
patch 8.2.3252: duplicated code for adding buffer lines
...
Problem: Duplicated code for adding buffer lines.
Solution: Move code to a common function. Also move map functions to map.c.
(Yegappan Lakshmanan, closes #8665 )
2021-07-30 21:32:45 +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
h-east
29b857150c
patch 8.2.3226: new digraph functions use old naming scheme
...
Problem: New digraph functions use old naming scheme.
Solution: Use the digraph_ prefix. (Hirohito Higashi, closes #8580 )
2021-07-26 21:54:04 +02:00
Yegappan Lakshmanan
a764e73d4f
patch 8.2.3221: 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. (Yegappan Lakshmanan, closes #8632 )
2021-07-25 15:57:32 +02:00
Yegappan Lakshmanan
5bca906b30
patch 8.2.3215: 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. Sort the argument lists.
(Yegappan Lakshmanan, closes #8626 )
2021-07-24 21:33:26 +02:00