aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
Commit message (Collapse)AuthorAge
...
* | | vim-patch:8.2.4464: Dtrace files are recognized as filetype D (#17518)Christian Clason2022-02-26
| | | | | | | | | | | | | | | | | | Problem: Dtrace files are recognized as filetype D. Solution: Add a pattern for Dtrace files. (Teubel György, closes vim/vim#9841) Add some more testing. https://github.com/vim/vim/commit/4d56b971cbae01cc454eb09713326224993e38ed
* | | Merge pull request #17467 from dundargoc/ci/remove-failing-windowsJames McCoy2022-02-25
|\ \ \ | | | | | | | | ci: remove failing windows CI tests
| * | | ci: skip tests that fail on windowsDundar Göc2022-02-20
| | | |
* | | | Merge pull request #17403 from zeertzjq/vim-8.1.1955zeertzjq2022-02-21
|\ \ \ \ | | | | | | | | | | vim-patch:8.1.{1846,1955},8.2.0156
| * | | | vim-patch:8.2.0156: various typos in source files and testszeertzjq2022-02-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Various typos in source files and tests. Solution: Fix the typos. (Emir Sari, closes vim/vim#5532) https://github.com/vim/vim/commit/4b96df5a017a04141c4e901b1fc5704a3ca48099
| * | | | vim-patch:8.1.1955: tests contain typoszeertzjq2022-02-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Tests contain typos. Solution: Correct the typos. (Dominique Pelle) https://github.com/vim/vim/commit/1bc353b6f1b063e189e0cef26f8dc586dcf9161f Other changes are either N/A or already applied.
| * | | | vim-patch:8.1.1846: inconsistently using GetVimCommand() and v:progpathzeertzjq2022-02-14
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Inconsistently using GetVimCommand() and v:progpath. (Daniel Hahler) Solution: Use GetVimCommand(). (closes vim/vim#4806) https://github.com/vim/vim/commit/93344c2d707d9953f351c944e6a237c9916f69a3 Cherry-pick a change to test_profile.vim from patch 8.1.1544. Cherry-pick a change to test_vimscript.vim from patch 8.1.1826. Some of the args are no-op in Nvim, and `-i NONE` and `--headless` are already added by `GetVimCommand()`. I'll try to match the order of args in upstream, substituting `--not-a-term` with `--headless`.
* | | | vim-patch:8.2.4427: getchar() may return modifiers if no character is availablezeertzjq2022-02-21
| |/ / |/| | | | | | | | | | | | | | Problem: getchar() may return modifiers if no character is available. Solution: Do not process modifiers when there is no character. (closes vim/vim#9806) https://github.com/vim/vim/commit/ad6c45f62558e03d3e3a927b3fe4dbaf30a36bef
* | | Merge pull request #17460 from seandewar/vim-8.2.4419Sean Dewar2022-02-19
|\ \ \ | | | | | | | | vim-patch:8.2.{4403,4418,4419,4422}
| * | | vim-patch:8.2.4422: autochdir test fails on MS-WindowsSean Dewar2022-02-19
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Autochdir test fails on MS-Windows. Solution: Expecta nother error on MS-Windows. https://github.com/vim/vim/commit/adbb383e0f2bb59286ea8133f02c448fd334958f
| * | | vim-patch:8.2.4419: illegal memory access when using 20 highlightsSean Dewar2022-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Illegal memory access when using exactly 20 highlights. Solution: Add one more item in the array. (Brandon Richardson, closes vim/vim#9800) https://github.com/vim/vim/commit/a493b6506b67887a1cc2d1c00a896598c3b2d445
| * | | vim-patch:8.2.4418: crash when using special multi-byte characterSean Dewar2022-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Crash when using special multi-byte character. Solution: Don't use isalpha() for an arbitrary character. https://github.com/vim/vim/commit/5921aeb5741fc6e84c870d68c7c35b93ad0c9f87 Rename vim_isalpha to mb_isalpha.
* | | | vim-patch:8.2.4424: ".gts" and ".gjs" files are not recognized (#17464)Christian Clason2022-02-19
|/ / / | | | | | | | | | | | | | | | Problem: ".gts" and ".gjs" files are not recognized. Solution: Recognize Glimmer flavored typescript and javascript. (closes vim/vim#9799) https://github.com/vim/vim/commit/cdf717283ca70b18f20b8a2cefe7957083280c6f
* | | vim-patch:8.2.4414: solidity files are not recognized (#17451)Christian Clason2022-02-18
| | | | | | | | | | | | | | | Problem: Solidity files are not recognized. Solution: Add the *.sol pattern. (Dundar Goc, closes vim/vim#9792) https://github.com/vim/vim/commit/97b231541d4e82fbc85e51121448d95bd43c50ad
* | | vim-patch:8.2.3661: test for put with large count failszeertzjq2022-02-18
| | | | | | | | | | | | | | | | | | Problem: Test for put with large count fails. Solution: Adjust the counts in the test. https://github.com/vim/vim/commit/8bc07e800c2af36686aadd4178cc2671f5c454d4
* | | vim-patch:8.2.3659: integer overflow with large line numberzeertzjq2022-02-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Integer overflow with large line number. Solution: Check for overflow. (closes vim/vim#9202) https://github.com/vim/vim/commit/03725c5795ae5b8c14da4a39cd0ce723c6dd4304 Put E1247 in globals.h as E1240 is also there. Do not make getdigits() abort.
* | | Merge pull request #17433 from seandewar/vim-8.2.3492Sean Dewar2022-02-18
|\ \ \ | | | | | | | | vim-patch:8.2.{3492,3493,3570,3573,3574,3575,3577,3601}: put overflow checking shenanigans
| * | | vim-patch:8.2.3601: check for overflow in put count does not work wellSean Dewar2022-02-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Check for overflow in put count does not work well. Solution: Improve the overflow check. (Ozaki Kiichi, closes vim/vim#9102) https://github.com/vim/vim/commit/fa53722367c3793fda95dac665af74b8651065e9 Add some casts as Nvim uses size_t variables in some places. We could technically adjust the logic to check for overflow outside of size_t's range, but it's much easier to just port the patch exactly (also means we can use the same tests). v:sizeoflong is N/A, so convert the 64-bit tests to Lua and use the FFI to check long's size.
| * | | vim-patch:8.2.3577: overflow check fails with 32 intsSean Dewar2022-02-17
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Overflow check fails with 32 ints. Solution: Only test with 64 bit ints. https://github.com/vim/vim/commit/0f0044125c2a5dcde2c4605efc39d2e237eed024
| * | | vim-patch:8.2.3573: cannot decide whether to skip test that fails with 64 bitSean Dewar2022-02-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot decide whether to skip test that fails with 64 bit ints. (closes vim/vim#9072) Solution: Add v:sizeofint, v:sizeoflong and v:sizeofpointer. Improve the check for multiply overflow. https://github.com/vim/vim/commit/69b3072d984480935ec412b32b97fea974d2b689 Omit v:sizeof{int,long,pointer} as they're only really used for tests.
| * | | vim-patch:8.2.3570: Test_very_large_count fails on 32bit systemsSean Dewar2022-02-17
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Test_very_large_count fails on 32bit systems. Solution: Bail out when using 32 bit numbers. (closes vim/vim#9072) https://github.com/vim/vim/commit/ec6e63079dde24a1d74b4103775e74d00f9215ec
| * | | vim-patch:8.2.3493: large count test fails on MS-WindowsSean Dewar2022-02-17
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Large count test fails on MS-Windows. Solution: Skip the test on MS-Windows. https://github.com/vim/vim/commit/cddd5ac911707034ca27f10037c4b1b523188c47
| * | | vim-patch:8.2.3492: crash when pasting too many timesSean Dewar2022-02-17
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Crash when pasting too many times. Solution: Limit the size to what fits in an int. (closes vim/vim#8962) https://github.com/vim/vim/commit/eeed1c7ae090c17f4df51cf97b2a9e4d8b4f4dc7 Note that this overflow check pretty bad. It also doesn't work well on Windows (where sizeof(int) == sizeof(long)). This is all temporary; everything here is rewritten in future patches anyway. e_resulting_text_too_long was already cherry-picked. totlen is size_t in Nvim, but is int in Vim. This means we'll need some casts. We could technically adjust the logic in do_put to use the entire range of size_t in stuff like totlen, but there's not much gain, and it's much easier to just port the patch like Vim as was done before (also allows us to use the same tests).
* / | vim-patch:8.2.4411: bicep files are not recognized (#17447)Christian Clason2022-02-17
|/ / | | | | | | | | Problem: Bicep files are not recognized. Solution: Match *.bicep files. (Dundar Goc, closes vim/vim#9791) https://github.com/vim/vim/commit/8e5ba693ad9377fbf4b047093624248b81eac854
* | vim-patch:8.2.4345: <amatch> is expanded like a file name for DirChangedPrezeertzjq2022-02-17
| | | | | | | | | | | | Problem: <amatch> is expanded like a file name for DirChangedPre. Solution: Do not expand <amatch>. (closes vim/vim#9742) Also for the User event. https://github.com/vim/vim/commit/f6246f51e3d85a982a899b4a8fd9045a5e23016f
* | Merge pull request #17363 from zeertzjq/dirchangedprezeertzjq2022-02-17
|\ \ | | | | | | feat(events): add DirChangedPre
| * | feat(events): add DirChangedPrezeertzjq2022-02-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Nvim, like DirChanged, this also triggers when switching windows. This marks Vim patch 8.2.4335 as ported. vim-patch:8.2.4335: no autocommand event triggered before changing directory Problem: No autocommand event triggered before changing directory. (Ronnie Magatti) Solution: Add DirChangedPre. (closes vim/vim#9721) https://github.com/vim/vim/commit/28e8f73ae2d90009fd62cd60f97c2643ba44de68
* | | Merge pull request #17411 from zeertzjq/vim-8.2.3820zeertzjq2022-02-15
|\ \ \ | | | | | | | | vim-patch:8.2.{3820,3823}: "vrc" does not replace composing characters
| * | | vim-patch:8.2.3820: "vrc" does not replace composing characterszeertzjq2022-02-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: "vrc" does not replace composing characters, while "rc" does. Solution: Check the byte length including composing characters. (closes vim/vim#9351) https://github.com/vim/vim/commit/8ee6028de3daa9af9e5f90fa9e583ff407bee04f vim-patch:8.2.3823: test for visual replace is in wrong function Problem: Test for visual replace is in wrong function. Solution: Move it to another function. https://github.com/vim/vim/commit/6ecf58b0d7d9b8fbba780d19d2e6c0f227df715b
* | | | vim-patch:8.2.4154: ml_get error when exchanging windows in Visual modezeertzjq2022-02-15
|/ / / | | | | | | | | | | | | | | | Problem: ml_get error when exchanging windows in Visual mode. Solution: Correct end of Visual area when entering another buffer. https://github.com/vim/vim/commit/05b27615481e72e3b338bb12990fb3e0c2ecc2a9
* | | test(old): reorder test_functions.vim and test_visual.vim to match Vimzeertzjq2022-02-15
| | |
* | | Merge pull request #17402 from seandewar/vim-8.2.4120Sean Dewar2022-02-15
|\ \ \ | | | | | | | | vim-patch:8.2.{3073,4120,4151,4152}
| * | | vim-patch:8.2.4152: block insert with double wide character failsSean Dewar2022-02-14
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Block insert with double wide character fails. Solution: Adjust the expected output. https://github.com/vim/vim/commit/fc6ccebea668c49e9e617e0657421b6a8ed9df1e
| * | | vim-patch:8.2.4151: reading beyond the end of a lineSean Dewar2022-02-14
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Reading beyond the end of a line. Solution: For block insert only use the offset for correcting the length. https://github.com/vim/vim/commit/57df9e8a9f9ae1aafdde9b86b10ad907627a87dc
| * | | vim-patch:8.2.4120: block insert goes over the end of the lineSean Dewar2022-02-14
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Block insert goes over the end of the line. Solution: Handle invalid byte better. Fix inserting the wrong text. https://github.com/vim/vim/commit/9f8c304c8a390ade133bac29963dc8e56ab14cbc
| * | | vim-patch:8.2.3073: when cursor is move for block append wrong text is insertedSean Dewar2022-02-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: When cursor is move for block append wrong text is inserted. Solution: Calculate an offset. (Christian Brabandt, closes vim/vim#8433, closes vim/vim#8288) https://github.com/vim/vim/commit/4067bd3604215b48e4b4201e28f9e401b08418e4
| * | | test(old): cherry-pick test_visual changes from v8.2.2945Sean Dewar2022-02-14
| | | | | | | | | | | | | | | | https://github.com/vim/vim/commit/59b262362f26b3aaea1eeb0078adc33eed59863e
| * | | test(old): cherry-pick test_visual changes from v8.2.2901Sean Dewar2022-02-14
| | | | | | | | | | | | | | | | https://github.com/vim/vim/commit/3e72dcad8b752a42b6eaf71213e3f5d534175256
| * | | test(old): cherry-pick test_visual changes from v8.2.0369Sean Dewar2022-02-14
| | |/ | |/| | | | | | | | | | | | | | | | https://github.com/vim/vim/commit/1671f4488105ee12a6a8558ae351436c26ab55fc Omit Test_AAA_start_visual_mode_with_count comment change as it hasn't been ported yet.
* / | vim-patch:8.2.4343: when reloading not all properties are detectedzeertzjq2022-02-14
|/ / | | | | | | | | | | | | | | Problem: When reloading not all properties are detected. Solution: Add the "edit" value to v:fcs_choice. (Rob Pilling, closes vim/vim#9579) https://github.com/vim/vim/commit/8196e94a8b72ed8618605cb66615571313097d78 Cherry-pick some test changes from patch 8.1.1826.
* | vim-patch:8.2.3534: autoread test is a bit flakyzeertzjq2022-02-13
| | | | | | | | | | | | Problem: Autoread test is a bit flaky. Solution: Wait a brief moment before overwriting the file. https://github.com/vim/vim/commit/944eeb44fb6e9d6d28474a1348d27c07873892f9
* | vim-patch:8.2.3514: autoread test with nano second time sometimes failszeertzjq2022-02-13
| | | | | | | | | | | | Problem: Autoread test with nano second time sometimes fails. Solution: Mark the test as being flaky. https://github.com/vim/vim/commit/eaa006dae3d5730e3b6dead27905444998b2cf8e
* | vim-patch:8.2.3512: timestamp test fails on some systemszeertzjq2022-02-13
| | | | | | | | | | | | Problem: Timestamp test fails on some systems. Solution: Sleep for a short while. https://github.com/vim/vim/commit/accf4ed352c07ffe59022377c42d36e12dd6d461
* | vim-patch:8.2.3510: changes are only detected with one second accuracyzeertzjq2022-02-13
| | | | | | | | | | | | | | | | | | Problem: Changes are only detected with one second accuracy. Solution: Use the nanosecond time if possible. (Leah Neukirchen, closes vim/vim#8873, closes vim/vim#8875) https://github.com/vim/vim/commit/0a7984af5601323fae7b3398f05a48087db7b767 In Nvim Test_checktime_fast() is also flaky. Add a delay to avoid that.
* | test(old): add test_cdo.vim and test_packadd.vimzeertzjq2022-02-13
| | | | | | | | | | test_cdo.vim is copied from Vim v8.1.1483. test_packadd.vim is copied from Vim v8.2.0174.
* | test(old): move some tests from assert_spec.lua to test_assert.vimzeertzjq2022-02-13
| |
* | Merge pull request #17385 from seandewar/vim-8.2.4359Sean Dewar2022-02-12
|\ \ | | | | | | vim-patch:8.2.{4359,4362,4363,4364}: crash when repeatedly using :retab
| * | vim-patch:8.2.4359: crash when repeatedly using :retabSean Dewar2022-02-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: crash when repeatedly using :retab. Solution: Bail out when the line is getting too long. https://github.com/vim/vim/commit/6e28703a8e41f775f64e442c5d11ce1ff599aa3f Cherry-pick e_resulting_text_too_long from v8.2.3492; put it in globals.h as it will eventually be used in other files. Add a modeline to test_retab.vim
* | | vim-patch:8.1.2184: option context is not copied when splitting a windowzeertzjq2022-02-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Option context is not copied when splitting a window. (Daniel Hahler) Solution: Copy the option context, so that ":verbose set" works. (closes vim/vim#5066) https://github.com/vim/vim/commit/cfb381421f8be7d6cb4e7dac5b827b23467d3e53 vim-patch:8.2.3804: script context not set when copying 'swf' and 'ts' Problem: Script context not set when copying 'swf' and 'ts'. Solution: Use COPY_OPT_SCTX with the right argument. (closes vim/vim#9347) https://github.com/vim/vim/commit/6206877c511c636cbeb2a2b911451af316b62d00
* | | Merge pull request #17382 from zeertzjq/vim-8.2.2342zeertzjq2022-02-13
|\ \ \ | | | | | | | | vim-patch:8.2.2342: "char" functions may return wrong column in Insert mode