zeertzjq and Peter Kenny
edcaf1887a
vim-patch:partial:9.2.0573: Vim9: missing EX_WHOLE on some block keywords ( #40071 )
...
Problem: Several Vim9 keywords lack EX_WHOLE and can be shortened in
Vim9 script, inconsistent with endif/enddef/endfor/endwhile/
endtry which already have it. The error from :endd in a
nested function also hardcodes "enddef" instead of reporting
what the user typed. fullcommand("ho") returns "horizontal"
even though :ho is below the documented 3-char minimum.
Solution: Add EX_WHOLE to :class, :def, :endclass, :endinterface,
:endenum, :public and :static. In get_function_body() pass
the user-typed command to the error message. Force :ho to
CMD_SIZE in find_ex_command() so fullcommand() reflects the
modifier minimum. Extend tests and documentation accordingly
(Peter Kenny).
fixes: vim/vim#20032
closes : vim/vim#20191
https://github.com/vim/vim/commit/38d9a16eba8cdf3377e8b867da805bf369454108
Co-authored-by: Peter Kenny <github.com@k1w1.cyou >
2026-06-01 01:04:30 +00:00
zeertzjq and Yegappan Lakshmanan
270c7b46af
vim-patch:9.1.2123: using NOT with a float returns a float in legacy script ( #37639 )
...
Problem: using NOT with a float returns a float in legacy vim script
(kennypete)
Solution: Return a number instead of a float (Yegappan Lakshmanan)
fixes: vim/vim#19282
closes : vim/vim#19289
https://github.com/vim/vim/commit/ecc3faef61cb02f28028f27184ccd2aadcee7c24
N/A patches:
vim-patch:8.2.1980: Vim9: some tests are not done at the script level
vim-patch:9.1.2122: Vim9: Negating a float doesn't result in a bool
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com >
2026-01-31 13:50:54 +00:00
Jan Edmund Lazo and Bram Moolenaar
7ce17cd2a2
vim-patch:8.2.4529: Vim9: comparing partial with function fails
...
Problem: Vim9: comparing partial with function fails.
Solution: Support this comparison. Avoid a crash. (closes vim/vim#9909 )
Add more test cases.
https://github.com/vim/vim/commit/ed0c62e7b16b62655824df28cdd6bd75aadbb8fc
Co-authored-by: Bram Moolenaar <Bram@vim.org >
2025-12-14 10:58:53 -05:00
zeertzjq and Yegappan Lakshmanan
3586e047e6
vim-patch:9.1.1695: Need more Vim script specific tests ( #35500 )
...
Problem: Need more Vim script specific tests
Solution: Add more tests (Yegappan Lakshmanan).
closes : vim/vim#18118
https://github.com/vim/vim/commit/e810ba5a1f6f256d2631b880641c0d7ce4d04ca5
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com >
2025-08-27 10:18:10 +08:00
zeertzjq and Hirohito Higashi
e7dfbf1343
vim-patch:9.1.1607: :apple command detected as :append ( #35237 )
...
Problem: :apple command detected as :append (dai475694450)
Solution: Disallow to define a custom command with lower-case letter,
correctly detect :insert/:change/:append ex commands
(Hirohito Higashi).
fixes : vim/vim#17893
closes : vim/vim#17930
https://github.com/vim/vim/commit/efd83d441ba14eaadf5df4c7c29fddebb2a24780
Co-authored-by: Hirohito Higashi <h.east.727@gmail.com >
2025-08-08 13:58:55 +00:00
zeertzjq and Yegappan Lakshmanan
30f85fcb7f
vim-patch:9.1.0419: eval.c not sufficiently tested
...
Problem: eval.c not sufficiently tested
Solution: Add a few more additional tests for eval.c,
(Yegappan Lakshmanan)
closes : vim/vim#14799
https://github.com/vim/vim/commit/4776e64e72de2976ff90b17d236e50e2b02c5540
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com >
2024-07-31 10:49:57 +08:00
zeertzjq and Yegappan Lakshmanan
619cb143f9
vim-patch:9.1.0415: Some functions are not tested
...
Problem: Some functions are not tested
Solution: Add a few more tests, fix a few minor problems
(Yegappan Lakshmanan)
closes : vim/vim#14789
https://github.com/vim/vim/commit/fe424d13ef6e5486923f23f15bb6951e3079412e
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com >
2024-07-31 10:49:57 +08:00
zeertzjq and Bram Moolenaar
598fd77d95
vim-patch:8.2.0183: tests fail when the float feature is disabled ( #29738 )
...
Problem: Tests fail when the float feature is disabled.
Solution: Skip tests that don't work without float support.
https://github.com/vim/vim/commit/5feabe00c47fa66d5f4c95213f150488433f78e3
Cherry-pick Test_ruby_Vim_blob() from patch 8.1.0977 and skip it.
Co-authored-by: Bram Moolenaar <Bram@vim.org >
2024-07-16 06:25:35 +00:00
zeertzjq and LemonBoy
6cbba2b48d
vim-patch:9.1.0529: silent! causes following try/catch to not work ( #29567 )
...
Problem: silent! causes following try/catch to not work
(Malcolm Rowe)
Solution: consider emsg_silent in handle_did_throw() and do not abort
evaluation flow for :silent! (LemonBoy)
The silent! flag causes the evaluation not to be aborted in case of
uncaught exceptions, adjust handle_did_throw to take this detail into
account.
Fixes the long-standing todo.txt item:
```
Problem that a previous silent ":throw" causes a following try/catch not
to work. (ZyX, 2013 Sep 28) With examples: (Malcolm Rowe, 2015 Dec 24)
Also see vim/vim#8487 for an example.
```
fixes : vim/vim#538
closes : vim/vim#15128
https://github.com/vim/vim/commit/749ba0f6d922b3f6b54a66543c214479492b5a0e
Cherry-pick Test_deeply_nested_source() from patch 8.2.5169.
Co-authored-by: LemonBoy <thatlemon@gmail.com >
2024-07-05 07:10:30 +08:00
b9d9cd7742
vim-patch:partial:9.0.1886: Various Typos
...
Problem: Various Typos
Solution: Fix Typos
This is a collection of typo related commits.
closes : vim/vim#12753
closes : vim/vim#13016
https://github.com/vim/vim/commit/ee17b6f70d382ec6c5d8d27b56c4e84106ac8c55
Co-authored-by: Christian Brabandt <cb@256bit.org >
Co-authored-by: Adri Verhoef <a3@a3.xs4all.nl >
Co-authored-by: Viktor Szépe <viktor@szepe.net >
Co-authored-by: nuid64 <lvkuzvesov@proton.me >
Co-authored-by: Meng Xiangzhuo <aumo@foxmail.com >
Co-authored-by: Dominique Pellé <dominique.pelle@gmail.com >
2023-09-09 17:58:32 +08:00
zeertzjq and Dominique Pelle
94f2da09e1
vim-patch:8.2.4611: typos in tests; one lua line not covered by test ( #24835 )
...
Problem: Typos in tests; one lua line not covered by test.
Solution: Fix typos. Add test case. (Dominique Pellé, closes vim/vim#9994 )
https://github.com/vim/vim/commit/81b573d7e55bd48988f298ce8e652d902e9bdeba
Cherry-pick test_menu.vim change from patch 9.0.1453.
N/A patch:
vim-patch:8.2.3045: minor typos
Co-authored-by: Dominique Pelle <dominique.pelle@gmail.com >
2023-08-22 20:02:50 +08:00
zeertzjq and Bram Moolenaar
ff801ce7f7
vim-patch:8.2.0533: tests using term_wait() can still be flaky
...
Problem: Tests using term_wait() can still be flaky.
Solution: Increase the wait time when rerunning a test. (James McCoy,
closes vim/vim#5899 ) Halve the initial times to make tests run faster
when there is no rerun.
https://github.com/vim/vim/commit/6a2c5a7dd5c9215cc030d5ea6e4616d782c091dd
Co-authored-by: Bram Moolenaar <Bram@vim.org >
2023-08-21 15:31:21 +08:00
zeertzjq
78d77c03de
vim-patch:9.0.1631: passing wrong variable type to option gives multiple errors ( #24026 )
...
Problem: Passing a wrong variable type to an option gives multiple errors.
Solution: Bail out early on failure. (closes vim/vim#12504 )
https://github.com/vim/vim/commit/4c7cb372c17a84c8a35254d93eb37cb854cd39da
2023-06-15 08:05:26 +08:00
Famiu Haque
b3d5138fd0
refactor(options): remove getoption_T and introduce OptVal ( #23850 )
...
Removes the `getoption_T` struct and also introduces the `OptVal` struct
to unify the methods of getting/setting different option value types.
This is the first of many PRs to reduce code duplication in the Vim
option code as well as to make options easier to maintain. It also
increases the flexibility and extensibility of options. Which opens the
door for things like Array and Dictionary options.
2023-06-07 08:05:16 +08:00
zeertzjq and Yegappan Lakshmanan
050b24cbcc
vim-patch:9.0.0543: insufficient testing for assert and test functions
...
Problem: Insufficient testing for assert and test functions.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes vim/vim#11190 )
https://github.com/vim/vim/commit/e24b5e0b0f5ab015215ef2761baa98ccb1ba8606
Cherry-pick E1219 from patch 8.2.3229.
Cherry-pick test_assert.vim change from patch 9.0.0491.
Cherry-pick the whole Test_refcount() function and skip it.
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com >
2023-05-05 19:43:13 +08:00
zeertzjq and Bram Moolenaar
15c502d8be
vim-patch:8.2.4892: test failures because of changed error messages
...
Problem: Test failures because of changed error messages.
Solution: Adjust the exptected error messages.
https://github.com/vim/vim/commit/ec892234788d37bfed47d8bf82dd4cae8d335ad9
Co-authored-by: Bram Moolenaar <Bram@vim.org >
2023-05-05 09:20:30 +08:00
zeertzjq
291fd767e3
vim-patch:8.2.0551: not all code for options is tested
...
Problem: Not all code for options is tested.
Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#5913 )
https://github.com/vim/vim/commit/1363a30cef382b912bf092969e040333c5c293c6
2023-04-29 09:07:10 +08:00
zeertzjq and Bram Moolenaar
a0d4649c17
vim-patch:9.0.1009: test for catch after interrupt is flaky on MS-Windows
...
Problem: Test for catch after interrupt is flaky on MS-Windows.
Solution: Mark the test as flaky.
https://github.com/vim/vim/commit/72b5b0d51aa9ddf8d338a5a133a667a3c2392ae1
Co-authored-by: Bram Moolenaar <Bram@vim.org >
2023-04-19 11:29:35 +08:00
zeertzjq and Bram Moolenaar
94a7ccea43
vim-patch:9.0.1008: test for swapfilelist() fails on MS-Windows
...
Problem: Test for swapfilelist() fails on MS-Windows.
Solution: Only check the tail of the path. Mark a test as flaky.
https://github.com/vim/vim/commit/6cf3151f0e3839332c89367b7384c395a1185927
Co-authored-by: Bram Moolenaar <Bram@vim.org >
2023-04-19 11:29:35 +08:00
zeertzjq and Dundar Göc
1b556c04bf
vim-patch:8.2.4476: operator name spelled wrong
...
Problem: Operator name spelled wrong.
Solution: Change trinary to ternary. (Goc Dundar, closes vim/vim#9850 )
https://github.com/vim/vim/commit/e41c1dd8890d3f701253255993f4e9af2d12225c
Co-authored-by: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com >
2023-04-15 17:15:04 +08:00
zeertzjq and Bram Moolenaar
85741677c8
vim-patch:8.2.0634: crash with null partial and blob
...
Problem: Crash with null partial and blob.
Solution: Check for NULL pointer. Add more tests. (Yegappan Lakshmanan,
closes vim/vim#5984 )
https://github.com/vim/vim/commit/92b83ccfda7a1d654ccaaf161a9c8a8e01fbcf76
Co-authored-by: Bram Moolenaar <Bram@vim.org >
2023-04-15 13:48:30 +08:00
zeertzjq and Bram Moolenaar
e36806666f
vim-patch:8.2.2138: Vim9: "exit_cb" causes Vim to exit ( #23087 )
...
Problem: Vim9: "exit_cb" causes Vim to exit.
Solution: Require white space after a command in Vim9 script. (closes vim/vim#7467 )
Also fix that Vim9 style heredoc was not always recognized.
https://github.com/vim/vim/commit/b5b9480ee936ef4cd0e350c468ef8c5f42fa398b
Omit EX_NONWHITE_OK, E1143, E1144: Vim9 script only.
Cherry-pick test_vimscript.vim changes from patch 8.2.2141.
Cherry-pick E1145 tag from Vim runtime.
N/A patches for version.c:
vim-patch:8.2.2140: build failure with tiny features
Problem: Build failure with tiny features.
Solution: Add #ifdef.
https://github.com/vim/vim/commit/2a3cd3af455973d678f70303ebdd486f3478bc0d
Co-authored-by: Bram Moolenaar <Bram@vim.org >
2023-04-14 20:35:46 +08:00
zeertzjq and Bram Moolenaar
aaacfd4a6d
vim-patch:8.2.1512: failure after trinary expression fails
...
Problem: Failure after trinary expression fails.
Solution: Restore eval_flags. (Yasuhiro Matsumoto, closes vim/vim#6776 )
https://github.com/vim/vim/commit/69e44552c567ff25b363ba0790ad3d43fa0397a7
Co-authored-by: Bram Moolenaar <Bram@vim.org >
2023-04-14 17:21:22 +08:00
dundargoc
af23d17388
test: move oldtests to test directory ( #22536 )
...
The new oldtest directory is in test/old/testdir. The reason for this is
that many tests have hardcoded the parent directory name to be
'testdir'.
2023-03-07 11:13:04 +08:00