| Commit message (Collapse) | Author | Age |
| |
|
|
|
| |
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'.
|
| |
|
|
|
|
|
|
|
|
| |
Problem: Some tests fail.
Solution: Adjust tests for different assert_fails() behavior. Remove unused
variable.
https://github.com/vim/vim/commit/2b6ef856fb89f703714f3f1f567d9bd7c81079f3
Co-authored-by: Bram Moolenaar <Bram@vim.org>
|
| |
|
|
|
|
|
|
|
| |
Problem: Condition with many "(" causes a crash.
Solution: Limit recursion to 1000.
https://github.com/vim/vim/commit/fe6fb267e6ee5c5da2f41889e4e0e0ac5bf4b89d
Co-authored-by: Bram Moolenaar <Bram@vim.org>
|
| |
|
|
|
|
|
|
|
|
| |
Problem: Using uninitialized memory when reading empty file.
Solution: Check for empty file before checking for NL. (Dominique Pellé,
closes vim/vim#9511)
https://github.com/vim/vim/commit/f5d639a8af719eb8ecb141b5c0890627e4d83134
Co-authored-by: Dominique Pelle <dominique.pelle@gmail.com>
|
| |
|
|
|
|
|
|
|
|
| |
Problem: Crash when invalid line number on :for is ignored.
Solution: Do not check breakpoint for non-existing line.
https://github.com/vim/vim/commit/35d21c6830fc2d68aca838424a0e786821c5891c
Test does not fail without the fix in Nvim as Nvim uses 0 when line
number overflows. If it is changed to MAXLNUM then the test does fail
without the fix, but using 0 seems better as E481 is still given.
|
| |
|
|
|
|
|
|
| |
Problem: Not all file read and writecode is tested.
Solution: Add a few tests. (Dominique Pellé, closes vim/vim#6764)
https://github.com/vim/vim/commit/1b04ce2d400fda97410a961288c496bd8f445a9c
Cherry-pick Test_glob() from patch 8.2.0634.
|
| |
|
|
|
|
| |
Problem: Invalid memory access with for loop over NULL string.
Solution: Make sure mb_ptr2len() consistently returns zero for NUL.
https://github.com/vim/vim/commit/f6d39c31d2177549a986d170e192d8351bd571e2
|
| |
|
|
|
|
| |
Problem: K_SPECIAL may be escaped twice.
Solution: Avoid double escaping. (closes vim/vim#10340)
https://github.com/vim/vim/commit/db08887f24d20be11d184ce321bc0890613e42bd
|
| |
|
|
|
| |
Copy test_regex_char_classes.vim from upstream to avoid future encoding
problems.
|
| | |
|
| |
|
|
| |
https://github.com/vim/vim/commit/80d7395dcfe96158428da6bb3d28a6eee1244e28
|
| |
|
|
|
|
|
|
|
|
|
| |
Problem: Cannot save and restore a register properly.
Solution: Add getreginfo() and make setreg() accept a dictionary. (Andy
Massimino, closes vim/vim#3370)
https://github.com/vim/vim/commit/bb861e293e0170455184079fa537278754b07911
Cherry-pick eval.txt changes for getreginfo() from:
https://github.com/vim/vim/commit/6aa57295cfbe8f21c15f0671e45fd53cf990d404
https://github.com/vim/vim/commit/207f009326c8f878defde0e594d7d9ed9860106e
|
| |
|
|
|
|
|
|
| |
Problem: Test_eval_stuff fails in normal terminal.
Solution: Close the new window.
https://github.com/vim/vim/commit/61fbb3371ee1f6a02706f52fbe064608e159be7c
Required for v8.2.0598 to work.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Problem: Test_eval is old style.
Solution: Change some tests to a new style test.
https://github.com/vim/vim/commit/90455cfa87f84f16179c19241b034abbfa8b3c9a
Cherry-pick Test_setreg_basic changes from v8.2.0610.
Note that the old-style version of the tests (and the cherry-picked
changes) exist in legacy/eval_spec.lua; keep them as they've already
been Lua'd.
Required for v8.2.0924.
|
| |\
| |
| | |
Port VimL's Blob type - vim-patch:8.1.{0735,0736,0738,0741,0742,0755,0756,0757,0765,0793,0797,0798,0802,1022,1023,1671},8.2.{0121,0184,0404,0521,0829,1473,1866,2712}
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
These were issues that I found while porting that I fixed upstream. :^)
Very little of the patch can be exactly ported as we're a bit behind on
dependant patches (we also can't use the exact :for emsg, as we don't
support iterating over Strings yet), so just translate the fixes as best
as we can for now.
Include latest relevant doc changes from:
- v8.1.0815
- v8.2.2658
|
| | | |
|
| |/
|
|
|
| |
Include Test_string_concat_scriptversion1 to test that
has('vimscript-1') works (excluding the :scriptversion 1 bit).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Problem: Recognizing octal numbers is confusing.
Solution: Introduce scriptversion 4: do not use octal and allow for single
quote inside numbers.
https://github.com/vim/vim/commit/60a8de28d11595f4df0419ece8afa7d6accc9fbd
:scriptversion is N/A.
Cherry-pick Test_readfile_binary() from v8.1.0742.
Note that this patch was missing vim_str2nr() changes, and so fails the
tests; this was fixed in v8.1.2036.
|
| |
|
|
|
|
| |
Problem: No easy way to get the maximum or mininum number value.
Solution: Add v:numbermax and v:numbermin.
https://github.com/vim/vim/commit/57d5a01cb45d6edb16c3835a49b42d6d8fc0163e
|
| |
|
|
|
|
|
| |
Problem: Mixing up "long long" and __int64 may cause problems. (John
Marriott)
Solution: Pass varnumber_T to vim_snprintf(). Add v:numbersize.
https://github.com/vim/vim/commit/f9706e9df0e37d214fb08eda30ba29627e97a607
|
| |
|
|
|
|
| |
Problem: Eval test fails because for loop on string works.
Solution: Check looping over function reference fails.
https://github.com/vim/vim/commit/c61cb8bfe1ec2cc50e6edd195cae2a3cd93d6590
|
| |
|
|
|
|
|
|
| |
Problem: Cursor on invalid line with range and :substitute.
Solution: Do not move the cursor when skipping commands. (closes vim/vim#3434)
https://github.com/vim/vim/commit/df2c2988bbaecd28b0fbec8d64327b1bbb005e19
Cherry-pick Test_for_invalid() from patch v8.1.0736.
|
| |
|
|
|
|
| |
Problem: Curly braces expression ending in " }" does not work.
Solution: Skip over white space when checking for "}". (closes vim/vim#6634)
https://github.com/vim/vim/commit/ae95a3946b012d4e68bcb20b28f691f6d3b9caaf
|
| |
|
|
|
|
| |
Problem: When skipping over code after an exception was thrown expression
evaluation is aborted after a function call. (Ingo Karkat)
Solution: Do not fail if not executing the expression. (closes vim/vim#4507)
https://github.com/vim/vim/commit/606407384144df73a6154aca1d77e071fe1b7651
|
| |
|
|
|
|
| |
Problem: Crash when setting v:errmsg to empty list. (Jaon Franklin)
Solution: Separate getting value and assigning result.
https://github.com/vim/vim/commit/4b9e91f0ba02192e4592a5c4a9bdcdd6e9efeb5e
|
| |
|
|
|
|
| |
Problem: Error messages suppressed after ":silent! try". (Ben Reilly)
Solution: Restore emsg_silent before executing :try. (closes vim/vim#2531)
https://github.com/vim/vim/commit/2be57331524e93da52a0663f4a334d21c05123bb
|
| |
|
|
|
|
| |
Problem: Confusing overloaded operator "." for string concatenation.
Solution: Add ".." for string concatenation. Also "let a ..= b".
https://github.com/vim/vim/commit/0f248b006c2574abc00c9aa7886d8f33620eb822
|
| |
|
|
|
|
| |
Problem: Continuation lines cannot contain comments.
Solution: Support using "\ .
https://github.com/vim/vim/commit/67f8ab829911c7901c534ef2bf19cc34b622936f
|
| |
|
|
|
|
|
|
| |
Problem: Mkdir with 'p' flag fails on existing directory, which is
different from the mkdir shell command.
Solution: Don't fail if the directory already exists. (James McCoy,
closes vim/vim#2775)
https://github.com/vim/vim/commit/78a16b0f2a142aae1fdc96c50ab0f25194d0e755
|
| |
|
|
|
|
| |
Problem: Setting v:errors to wrong type still possible.
Solution: Return after giving an error message. (Christian Brabandt)
https://github.com/vim/vim/commit/88b53fd0521d1e62df17a8a1f2181425e9d4854c
|
|
|
Problem: Error in return not caught by try/catch.
Solution: Call update_force_abort(). (Yasuhiro Matsomoto, closes vim/vim#2483)
https://github.com/vim/vim/commit/fabaf753e26df5a89a854673d14c15a1fa6b321a
|