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
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
Nir Lichtman
1aeccdb464
patch 8.2.3870: MS-Windows: wrong dir when using right-click context menu
...
Problem: MS-Windows: wrong working directory when opening two files with
right-click context menu. (Gabriel Dupras)
Solution: Use the working directory and pass it on to the process creation.
(Nir Lichtman, closes #9382 , closes #8874 )
2021-12-22 15:21:15 +00:00
Bram Moolenaar
fa46ead31a
patch 8.2.3869: Vim9: type checking for "any" is inconsistent
...
Problem: Vim9: type checking for "any" is inconsistent.
Solution: Always use a runtime type check for using "any" for a more
specific type.
2021-12-22 13:18:39 +00:00
Bram Moolenaar
1b5f7a6202
patch 8.2.3868: Vim9: function test fails
...
Problem: Vim9: function test fails.
Solution: Add missing changes. Add test for earlier patch.
2021-12-21 13:30:42 +00:00
Yegappan Lakshmanan
d92813a598
patch 8.2.3867: implementation of some list functions too complicated
...
Problem: Implementation of some list functions too complicated.
Solution: Refactor do_sort_uniq(), f_count() and extend() (Yegappan
Lakshmanan, closes #9378 )
2021-12-21 13:19:42 +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
0d807107b6
patch 8.2.3865: Vim9: compiler complains about using "try" as a struct member
...
Problem: Vim9: compiler complains about using "try" as a struct member.
Solution: Rename "try" to "tryref".
2021-12-21 09:42:09 +00:00
Bram Moolenaar
6f79e614b2
patch 8.2.3864: cannot disable requesting key codes from xterm
...
Problem: Cannot disable requesting key codes from xterm.
Solution: Add the 'xtermcodes' option, default on.
2021-12-21 09:12:23 +00:00
Bram Moolenaar
8d95d7091d
patch 8.2.3863: various build flags accidentally enabled
...
Problem: Various build flags accidentally enabled.
Solution: Revert several lines in Makefile.
2021-12-20 22:12:53 +00:00
Bram Moolenaar
dab17a0689
patch 8.2.3862: crash on exit with EXITFREE and using win_execute()
...
Problem: Crash on exit with EXITFREE and using win_execute().
Solution: Also save and restore tp_topframe. (issue #9374 )
2021-12-20 21:35:59 +00:00
Bram Moolenaar
39713d3acb
patch 8.2.3861: list of distributed files is outdated
...
Problem: List of distributed files is outdated.
Solution: Add new files.
2021-12-20 15:53:13 +00:00
Bram Moolenaar
dc7c366f3a
patch 8.2.3860: Vim9: codecov struggles with the file size
...
Problem: Vim9: codecov struggles with the file size.
Solution: Split vim9compile.c into four files.
2021-12-20 15:04:29 +00:00
Bram Moolenaar
a99fb23842
patch 8.2.3859: Vim9: some code lines not tested
...
Problem: Vim9: some code lines not tested.
Solution: Add a few specific tests.
2021-12-20 12:25:03 +00:00
Bram Moolenaar
003312b1d2
patch 8.2.3858: Vim9: not enough tests
...
Problem: Vim9: not enough tests.
Solution: Add tests for :try/:catch and :redir. Add missing type check.
2021-12-20 10:55:35 +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
Bram Moolenaar
fea43e44c0
patch 8.2.3856: Vim9: not enough tests
...
Problem: Vim9: not enough tests.
Solution: Run more expression tests also with Vim9. Fix an uncovered
problem.
2021-12-19 21:34:05 +00:00
Yegappan Lakshmanan
bc404bfb32
patch 8.2.3855: illegal memory access when displaying a blob
...
Problem: Illegal memory access when displaying a blob.
Solution: Append a NUL at the end. (Yegappan Lakshmanan, closes #9372 )
2021-12-19 19:19:31 +00:00
Bram Moolenaar
86b3ab4fa0
patch 8.2.3854: Vim9: inconsistent arguments for test functions
...
Problem: Vim9: inconsistent arguments for test functions.
Solution: When :def function and script have different arguments use a list
with two items instead of a separate function.
2021-12-19 18:33:23 +00:00
Bram Moolenaar
700e6b1662
patch 8.2.3853: Vim9: not enough tests
...
Problem: Vim9: not enough tests.
Solution: Run more existing tests for Vim9 script.
2021-12-19 17:27:06 +00:00
Bram Moolenaar
f47c5a8e2d
patch 8.2.3852: Vim9: not enough tests
...
Problem: Vim9: not enough tests.
Solution: Also run existing tests for Vim9 script. Make errors more
consistent.
2021-12-19 15:17:21 +00:00
Bram Moolenaar
265f811f5a
patch 8.2.3851: Vim9: overhead when comparing string, dict or function
...
Problem: Vim9: overhead when comparing string, dict or function.
Solution: Call the intented compare function directly. Refactor to avoid
duplicated code.
2021-12-19 12:33:05 +00:00
Bram Moolenaar
2de5371a75
patch 8.2.3850: illegal memory access when displaying a partial
...
Problem: Illegal memory access when displaying a partial.
Solution: Terminate the string with a NUL. (closes #9371 )
2021-12-19 11:06:35 +00:00
Yegappan Lakshmanan
389b72196e
patch 8.2.3849: functions implementing reduce and map are too long
...
Problem: Functions implementing reduce and map are too long.
Solution: Use a function for each type of value. Add a few more test cases
and add to the help. (Yegappan Lakshmanan, closes #9370 )
2021-12-19 10:35:15 +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
605ec91e5a
patch 8.2.3847: illegal memory access when using a lambda with an error
...
Problem: Illegal memory access when using a lambda with an error.
Solution: Avoid skipping over the NUL after a string.
2021-12-18 16:54:31 +00:00
zeertzjq
60618c8f1a
patch 8.2.3846: no error when using control character for 'lcs' or 'fcs'
...
Problem: No error when using control character for 'lcs' or 'fcs'.
Solution: Use char2cells() to check the width. (closes #9369 )
2021-12-18 15:32:46 +00:00
Dominique Pelle
0dc4d8eaec
patch 8.2.3845: Vim9: test fails when the channel feature is missing
...
Problem: Vim9: test fails when the channel feature is missing.
Solution: Check for the channel feature. (Dominique Pellé, closes #9368 )
2021-12-18 12:40:52 +00:00
Bram Moolenaar
44a8977de4
patch 8.2.3844: Vim9: no type error if assigning func(number) to func(string)
...
Problem: Vim9: no type error if assigning a value with type func(number) to
a variable of type func(string).
Solution: Use check_type_maybe(): return MAYBE if a runtime type check is
useful. (issue #8492 )
2021-12-18 12:31:33 +00:00
James McCoy
647ab4cede
patch 8.2.3843: dep3patch files are not recognized
...
Problem: Dep3patch files are not recognized.
Solution: Recognize dep3patch files by their location and content. (James
McCoy, closes #9367 )
2021-12-17 20:52:57 +00:00
Bram Moolenaar
422085f1c8
patch 8.2.3842: Vim9: can change locked list and list items
...
Problem: Vim9: can change locked list and list items.
Solution: Check that a list and list item isn't locked.
2021-12-17 20:36:15 +00:00
Bram Moolenaar
71b7685092
patch 8.2.3841: Vim9: outdated TODO items, disabled tests that work
...
Problem: Vim9: outdated TODO items, disabled tests that work.
Solution: Remove TODO items, run tests that work now. Check that a dict
item isn't locked.
2021-12-17 20:15:38 +00:00
rbtnn
ddc80aff57
patch 8.2.3840: useless test for negative index in check functions
...
Problem: Useless test for negative index in check functions.
Solution: Remove the test for negative index. (Naruhiko Nishino,
closes #9364 )
2021-12-17 18:01:31 +00:00
Dominique Pelle
354b23a9f8
patch 8.2.3839: using \z() with \z1 not tested for syntax highlighting
...
Problem: Using \z() with \z1 not tested for syntax highlighting.
Solution: Add a test. (Dominique Pellé, closes #9365 )
2021-12-17 17:32:29 +00:00
Yegappan Lakshmanan
db1a410b61
patch 8.2.3838: cannot use script-local function for setting *func options
...
Problem: Cannot use script-local function for setting *func options.
Solution: Use the script context. (Yegappan Lakshmanan, closes #9362 )
2021-12-17 16:21:20 +00:00
Bram Moolenaar
d2ff705af3
patch 8.2.3837: QNX: crash when compiled with GUI but using terminal
...
Problem: QNX: crash when compiled with GUI but using terminal.
Solution: Check gui.in_use is set. (Hirohito Higashi, closes #9363 )
2021-12-17 16:00:04 +00:00
Bram Moolenaar
02929a372e
patch 8.2.3836: Vim9: comment after expression not skipped to find NL
...
Problem: Vim9: comment after expression not skipped to find NL.
Solution: After evaluating an expression look for a newline after a #
comment.
2021-12-17 14:46:12 +00:00
Bram Moolenaar
259f443a93
patch 8.2.3835: the inline-function example does not work
...
Problem: The inline-function example does not work.
Solution: Drop ":let". Add EX_EXPR_ARG to CMD_var. (issue #9352 )
2021-12-17 12:45:22 +00:00
Bram Moolenaar
deda6441e4
patch 8.2.3834: Test_out_cb often fails on Mac
...
Problem: Test_out_cb often fails on Mac.
Solution: Increase the timeout with every retry.
2021-12-17 11:44:33 +00:00
ichizok
c3f91c0648
patch 8.2.3833: error from term_start() not caught by try/catch
...
Problem: Error from term_start() not caught by try/catch.
Solution: save and restore did_emsg when applying autocommands. (Ozaki
Kiichi, closes #9361 )
2021-12-17 09:44:33 +00:00
Bram Moolenaar
994a0a298b
patch 8.2.3832: test fails because of changed error message
...
Problem: Test fails because of changed error message.
Solution: Adjust the expected error message.
2021-12-16 21:11:26 +00:00
Bram Moolenaar
23e72369ff
patch 8.2.3831: opfunc test fails when missing feature changes function name
...
Problem: Opfunc test fails when missing feature changes function name.
(Dominique Pellé)
Solution: Check the relevant screen line instead of using a screendump.
(closes #9360 )
2021-12-16 21:07:35 +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
94c785d235
patch 8.2.3829: no error when setting a func option to script-local function
...
Problem: No error when setting a func option to a script-local function.
Solution: Give an error if the name starts with "s:". (closes #9358 )
2021-12-16 19:45:47 +00:00
Bram Moolenaar
8103527da7
patch 8.2.3828: when opening a terminal from a timer first typed char is lost
...
Problem: when opening a terminal from a timer the first typed character
is lost. (Virginia Senioria)
Solution: When opening a terminal while waiting for a character put K_IGNORE
in the input buffer.
2021-12-16 18:02:07 +00:00
Bram Moolenaar
f79cbf6512
patch 8.2.3827: huntr badge does not really fit in the list
...
Problem: Huntr badge does not really fit in the list.
Solution: Move the link to Huntr to the issue template.
2021-12-16 16:14:11 +00:00
Bram Moolenaar
b15cf44c1d
patch 8.2.3826: Vim9: using "g:Func" as funcref doesn't work in :def function
...
Problem: Vim9: using "g:Func" as a funcref does not work in a :def
function.
Solution: Include "g:" in the function name. (closes #9336 )
2021-12-16 15:49:43 +00:00
Bram Moolenaar
52797bae17
patch 8.2.3825: various comments could be improved
...
Problem: Various comments could be improved.
Solution: Improve the comments.
2021-12-16 14:45:13 +00:00
Bram Moolenaar
0e6adf8a29
Update runtime files
2021-12-16 14:41:10 +00:00
Yegappan Lakshmanan
6df0f2759d
patch 8.2.3824: no ASAN support for MSVC
...
Problem: No ASAN support for MSVC.
Solution: Add ASAN support and fix a coupld of uncovered problems. (Yegappan
Lakshmanan, closes #9357 )
2021-12-16 13:06:10 +00:00