aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
Commit message (Collapse)AuthorAge
* vim-patch:8.1.0958: compiling weird regexp pattern is very slowJan Edmund Lazo2021-03-29
| | | | | | | | | | Problem: Compiling weird regexp pattern is very slow. Solution: When reallocating post list increase size by 50%. (Kuang-che Wu, closes vim/vim#4012) Make assert_inrange() accept float values. https://github.com/vim/vim/commit/38f08e76acf7d21bb34cf8f79f0f82eb63cdc987 Omit changes to typval_compare() because patch v8.0.1505 was not ported.
* vim-patch:8.1.0542: shiftwidth() does not take 'vartabstop' into accountVVKot2021-03-28
| | | | | | | | Problem: shiftwidth() does not take 'vartabstop' into account. Solution: Use the cursor position or a position explicitly passed. Also make >> and << work better with 'vartabstop'. (Christian Brabandt) https://github.com/vim/vim/commit/f951416a8396a54bbbe21de1a8b16716428549f2
* vim-patch:8.1.0479: failure when setting 'varsofttabstop' to end in a commaVVKot2021-03-28
| | | | | | | | Problem: Failure when setting 'varsofttabstop' to end in a comma. (Ralf Schandl) Solution: Reject value with trailing command. Add test for invalid values (closes vim/vim#3544) https://github.com/vim/vim/commit/64f410742f101d7d5ea9e65503e1e0019605eaa5
* vim-patch:8.1.0154: crash with "set smarttab shiftwidth=0 softtabstop=-1"VVKot2021-03-28
| | | | | | Problem: Crash with "set smarttab shiftwidth=0 softtabstop=-1". Solution: Fall back to using 'tabstop'. (closes vim/vim#3155) https://github.com/vim/vim/commit/c9fe5ab3b093803b6e8d03358ba16aca6b6f0db1
* vim-patch:8.1.0138: negative value of 'softtabstop' not used correctlyVVKot2021-03-28
| | | | | | Problem: Negative value of 'softtabstop' not used correctly. Solution: Use get_sts_value(). (Tom Ryder) https://github.com/vim/vim/commit/33d5ab3795720b7d986f9f17f660ee9e448466e0
* vim-patch:8.1.0126: various problems with 'vartabstop'VVKot2021-03-28
| | | | | | | Problem: Various problems with 'vartabstop'. Solution: Fix memory leak. Fix crash. Add a few more tests. (Christian Brabandt, closes vim/vim#3076) https://github.com/vim/vim/commit/307ac5c68e9e624ab713136d79f35bb73f780d2d
* vim-patch:8.1.0116: display problem with 'vartabstop' and 'linebreak'VVKot2021-03-28
| | | | | | | Problem: Display problem with 'vartabstop' and 'linebreak'. (Chauca Fuentes) Solution: Call tabstop_padding(). (Christian Brabandt, closes vim/vim#3076) https://github.com/vim/vim/commit/a87b72cc316e065d66dcbcf7ec1cde330adef3a3
* vim-patch:8.1.0105: all tab stops are the sameVVKot2021-03-28
| | | | | | | Problem: All tab stops are the same. Solution: Add the variable tabstop feature. (Christian Brabandt, closes vim/vim#2711) https://github.com/vim/vim/commit/04958cbaf25eea27eceedaa987adfb354ad5f7fd
* test/old: skip Test_strptime() on WindowsJan Edmund Lazo2021-03-27
| | | | | | | | | | | POSIX strptime does not exist in Windows. There is a C++ workaround but I don't know how to use it. Julia ported BSD's "strptime()" but I can't compile the file or embed the relevant code into src/nvim/os/time.c I cannot use "#ifdef" in eval.lua because of function hashing. "#ifdef" is required to point "strptime()" to NULL such that "CheckFunction strptime" fails.
* vim-patch:8.2.0949: strptime() does not use DSTJan Edmund Lazo2021-03-27
| | | | | | Problem: Strptime() does not use DST. Solution: Set the tm_isdst field to -1. (Tomáš Janoušek, closes vim/vim#6230) https://github.com/vim/vim/commit/ea1233fccf4f52f2b4eaab3788a087878d1336fc
* vim-patch:8.1.2398: strptime() test fails on Japanese MacJan Edmund Lazo2021-03-27
| | | | | | Problem: strptime() test fails on Japanese Mac. Solution: Use %T instead of %X. https://github.com/vim/vim/commit/9a838fe543b69582b0773f7c38a57f16fb32d765
* vim-patch:8.1.2326: cannot parse a date/time stringJan Edmund Lazo2021-03-27
| | | | | | | | | | | | | | | Problem: Cannot parse a date/time string. Solution: Add strptime(). (Stephen Wall, closes #) https://github.com/vim/vim/commit/10455d43fef041309ce0613fa792c635dd71e3a8 N/A patches for version.c: vim-patch:8.1.2344: Cygwin: warning for using strptime() Problem: Cygwin: warning for using strptime(). Solution: Move defining _XOPEN_SOURCE and __USE_XOPEN to vim.h. (Ken Takata, closes vim/vim#5265) Use 700 for _XOPEN_SOURCE for mkdtemp(). https://github.com/vim/vim/commit/6a228c6463935a73c8f21142cb7368545cfee317
* vim-patch:8.2.1666: the initial value of 'backupskip' can have duplicate itemsJan Edmund Lazo2021-03-27
| | | | | | | Problem: The initial value of 'backupskip' can have duplicate items. Solution: Remove duplicates, like when it is set later. (Tom Ryder, closes vim/vim#6940) https://github.com/vim/vim/commit/b00ef0508b22905379953a164bdb4300015d3705
* vim-patch:8.2.2662: there is no way to avoid some escape sequencesJan Edmund Lazo2021-03-27
| | | | | | | | | Problem: There is no way to avoid some escape sequences. Solution: Suppress escape sequences when the --not-a-term argument is used. (Gary Johnson) https://github.com/vim/vim/commit/7007e31bde75b6360a1b54c7572e4f855458f37d "Test_not_a_term" passes because Neovim does not support "--not-a-term" flag.
* test/old: run some tests from test_listlbr.vimJan Edmund Lazo2021-03-27
| | | | These tests pass without 'set encoding=latin1'.
* test/old: test_eval_func was removedJan Edmund Lazo2021-03-27
|
* test/old: do not special-case test_autochdirJan Edmund Lazo2021-03-27
| | | | | | | | | Use "CheckFunction" for standard error message for missing "test_autochdir()". Sync test_autochdir.vim to the latest Vim commit because porting Vim patches for this file modify other files and are too tedious to port.
* test/old: use CheckFunction, enable more testsJan Edmund Lazo2021-03-27
| | | | | | Some skipped tests have custom error messages. Use ":CheckFunction" command for standard error message on missing function.
* vim-patch:8.2.2045: highlighting a character too much with incsearchJan Edmund Lazo2021-03-27
| | | | | | Problem: Highlighting a character too much with incsearch. Solution: Check "search_match_endcol". (Christian Brabandt, closes vim/vim#7360) https://github.com/vim/vim/commit/448465e6872905967c97a56cd45307530795653c
* vim-patch:8.2.2659: eval test fails because for loop on string worksJan Edmund Lazo2021-03-26
| | | | | | Problem: Eval test fails because for loop on string works. Solution: Check looping over function reference fails. https://github.com/vim/vim/commit/c61cb8bfe1ec2cc50e6edd195cae2a3cd93d6590
* vim-patch:8.2.0402: setting local instead of global flagJan Edmund Lazo2021-03-23
| | | | | | Problem: Setting local instead of global flag. Solution: Prepend "g:" to "test_is_flaky". https://github.com/vim/vim/commit/30d53e2c11e670845830bdfc29bf8c1615df61a8
* vim-patch:8.2.0400: not all tests using a terminal are in the list of flaky ↵Jan Edmund Lazo2021-03-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | tests Problem: Not all tests using a terminal are in the list of flaky tests. Solution: Introduce the test_is_flaky flag. https://github.com/vim/vim/commit/3cdcb090a664e182078f7cc0ca3e4e5a94bbb784 Cherry-pick g:test_is_flaky from patch v8.2.0557. Ensure that test_is_flaky variable is set from the global scope.. N/A patches for version.c: vim-patch:8.2.2647: terminal test sometimes hangs Problem: Terminal test sometimes hangs. Solution: Wait for the shell to display a prompt. https://github.com/vim/vim/commit/f4a2ed071447ad4984fad55b9d1671b55140ae1c vim-patch:8.2.2648: terminal resize test sometimes hangs Problem: Terminal resize test sometimes hangs. Solution: Wait for the shell to display a prompt and other output. https://github.com/vim/vim/commit/c54f347d63bcca97ead673d01ac6b59914bb04e5 fixup! vim-patch:8.2.0400: not all tests using a terminal are in the list of flaky tests
* Merge pull request #14178 from andymass/vim-8.2.0088Jan Edmund Lazo2021-03-22
|\ | | | | [RFC] vim-patch 8.2.0088: insufficient tests for tags...
| * vim-patch:8.2.0088: insufficient tests for tags; bug in using extra tag fieldAndy K. Massimino2021-03-21
| | | | | | | | | | | | | | Problem: Insufficient tests for tags; bug in using extra tag field when using an ex command to position the cursor. Solution: Fix the bug, add more tests. (Yegappan Lakshmanan, closes vim/vim#5439) https://github.com/vim/vim/commit/830c1afc9d2cd5819a05c71d4e0b1f748a8c0519
* | vim-patch:8.2.2634: 'tagfunc' does not indicate using a patternJan Edmund Lazo2021-03-21
| | | | | | | | | | | | Problem: 'tagfunc' does not indicate using a pattern. Solution: Add the "r" flag. (Andy Massimino, closes vim/vim#7982) https://github.com/vim/vim/commit/f90c855c71863296859780f7b4e0386e96f1c465
* | vim-patch:8.2.2631: commands from winrestcmd() do not always work properlyJan Edmund Lazo2021-03-21
| | | | | | | | | | | | | | Problem: Commands from winrestcmd() do not always work properly. (Leonid V. Fedorenchik) Solution: Repeat the size commands twice. (closes vim/vim#7988) https://github.com/vim/vim/commit/a0c8aea479ca055ce43ba2984a9933f6c48e6161
* | vim-patch:8.2.2625: rss files not recognizedJan Edmund Lazo2021-03-20
| | | | | | | | | | | | Problem: Rss files not recognized. Solution: Recognize .rss as XML. (Kivin Locke, closes vim/vim#7987) https://github.com/vim/vim/commit/af125866db46405fdaf99ac4e43b630d196a4aa4
* | vim-patch:8.2.2624: atom files not recognizedJan Edmund Lazo2021-03-20
|/ | | | | | | | | | | | | | | | | | | | | | | | Problem: Atom files not recognized. Solution: Recognize .atom as XML. (Kivin Locke, closes vim/vim#7986) https://github.com/vim/vim/commit/74b99f6ab6e0265ebee4ed496845f28e0904318d N/A patches for version.c: vim-patch:8.2.2622: GTK: error when starting up and -geometry is given Problem: GTK: error when starting up and -geometry is given. (Dominique Pellé) Solution: Use another function to get the monitor if the window has not been created yet. (closes vim/vim#7978) https://github.com/vim/vim/commit/a555e6fcb6ec97b5ab30b20a340b228f4d820f14 vim-patch:8.2.2626: GTK3: error when starting up and -geometry is given Problem: GTK3: error when starting up and -geometry is given. (Dominique Pellé) Solution: Use another function to get the monitor if the window has not been created yet. (closes vim/vim#7978) https://github.com/vim/vim/commit/240014321b0aa5d6eb00a70865fa9935fd888d60
* Merge pull request #14060 from andymass/vim-8.2.1703Jan Edmund Lazo2021-03-20
|\ | | | | [RFC] vim-patch:8.2.{1693,1703,1705}
| * vim-patch:8.2.1705: "verbose hi Name" reports incorrect info after ":hi clear"Andy K. Massimino2021-03-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: "verbose hi Name" reports incorrect info after ":hi clear". Solution: Store the script context. (Antony Scriven, closes vim/vim#6975) https://github.com/vim/vim/commit/e8df0104985af58ee501a6fbac8ac9f886e84e5a Also adds src/nvim/testdir/script_util.vim which originates from patch 8.2.1366 (https://github.com/vim/vim/commit/a6296200bd5191bab7efcdcc16c9e79eb498e8e0) because some tests in test_highlight.vim use it for testing :verbose. Should merge this and older related patches later. Also, fix collateral damage to test_options.vim test_options tests for file name completion in the test directory, but since we've added a new file, the test output is now different. This test is slightly different from upstream anyway, so for now we just add the file name. This may change when more upstream patches are added which alter this test.
| * vim-patch:8.2.1703: ":highlight clear" does not restore default linkAndy K. Massimino2021-03-05
| | | | | | | | | | | | | | Problem: ":highlight clear" does not restore default link. Solution: Remember the default link and restore it. (Antony Scriven, closes vim/vim#6970, closes vim/vim#4405) https://github.com/vim/vim/commit/213da551dec465e193619684b260bf9d5a8d6afc
| * vim-patch:8.2.1693: "hi def" does not work for cleared highlightAndy K. Massimino2021-03-05
| | | | | | | | | | | | | | Problem: "hi def" does not work for cleared highlight. Solution: Check the "sg_cleared" flag. (Maxim Kim, closes vim/vim#6956, closes vim/vim#4405) https://github.com/vim/vim/commit/05eb5b9cae123b138bbd23cc77e50657ece6b4ad
* | vim-patch:8.2.0422: crash when passing popup window to win_splitmove()Andy K. Massimino2021-03-19
| | | | | | | | | | | | | | | | Problem: Crash when passing popup window to win_splitmove(). (john Devin) Solution: Disallow moving a popup window. (closes vim/vim#5816) https://github.com/vim/vim/commit/0f1563ffee4397f5b379517c41b7c9a977fd2e22 Add translated test for 8.2.0422 (popup->floating)
* | vim-patch:8.2.0093: win_splitmove() can make Vim hangAndy K. Massimino2021-03-19
| | | | | | | | | | | | Problem: win_splitmove() can make Vim hang. Solution: Check windows exists in the current tab page. (closes vim/vim#5444) https://github.com/vim/vim/commit/7b94e77132eabdf0e43abca57e2ffeb961545174
* | vim-patch:8.1.2020: it is not easy to change the window layoutAndy K. Massimino2021-03-19
| | | | | | | | | | | | Problem: It is not easy to change the window layout. Solution: Add win_splitmove(). (Andy Massimino, closes vim/vim#4561) https://github.com/vim/vim/commit/d20dcb3d011da6111153109f6e46fbd5c7fe9fb6
* | vim-patch:8.2.2611: conditions for startup tests are not exactly rightJan Edmund Lazo2021-03-17
| | | | | | | | | | | | | | Problem: Conditions for startup tests are not exactly right. Solution: Check for type of GUI instead of MS-Windows. (Ozaki Kiichi, closes vim/vim#7976) https://github.com/vim/vim/commit/f8c52e8d08de3fdf48db877d7d53d2d68c6ceb7b
* | vim-patch:8.2.2609: test disabled on MS-Windows even though it should workJan Edmund Lazo2021-03-17
| | | | | | | | | | | | | | Problem: Test disabled on MS-Windows even though it should work. Solution: Restore the condition for skipping the test. (Ken Takata, closes vim/vim#7970) https://github.com/vim/vim/commit/321481299757cdd43baeed33f4c5ba543fdfc7f7
* | vim-patch:8.2.2604: GUI-specific command line arguments not testedJan Edmund Lazo2021-03-14
| | | | | | | | | | | | Problem: GUI-specific command line arguments not tested. Solution: Add tests for several arguments. (Dominique Pellé, closes vim/vim#7962) https://github.com/vim/vim/commit/240309c9bfa8a0d2f154712f8e0dd33589f181d3
* | vim-patch:8.2.2596: :doautocmd may confuse scripts listening to WinEnterJan Edmund Lazo2021-03-14
| | | | | | | | | | | | Problem: :doautocmd may confuse scripts listening to WinEnter. Solution: Do the current buffer last. (closes vim/vim#7958) https://github.com/vim/vim/commit/41cd80335cf318c15c8b0139f53ab5e8a02561ef
* | vim-patch:8.2.2595: setting 'winminheight' may cause 'lines' to changeJan Edmund Lazo2021-03-13
| | | | | | | | | | | | Problem: Setting 'winminheight' may cause 'lines' to change. Solution: Also take minimal height of other tabpages into account. (vim/vim#7899) https://github.com/vim/vim/commit/9e813b3dea94a8952b732a224fa31beba6e85973
* | vim-patch:8.2.2594: alternate buffer added to session file even when it's hiddenJan Edmund Lazo2021-03-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Alternate buffer added to session file even when it's hidden. Solution: Check the 'buflisted' option. (closes vim/vim#7951) https://github.com/vim/vim/commit/0756f757edba755b75e0c9c612ab2f7e673def84 N/A patches for version.c: vim-patch:8.2.2593: list of distributed files is incomplete Problem: List of distributed files is incomplete. Solution: Add a file and rename another. https://github.com/vim/vim/commit/0de8e2d6a3fae61c4d9dfdd6f16fc5040d994f6c
* | vim-patch:8.2.2341: expresison command line completion incomplete after "g:"Jan Edmund Lazo2021-03-12
| | | | | | | | | | | | | | | | | | | | Problem: Expresison command line completion shows variables but not functions after "g:". (Gary Johnson) Solution: Prefix "g:" when needed to a global function. https://github.com/vim/vim/commit/1bb4de5302ba038b9c59e845b6d735e87d5681d0 Port most of patch v8.2.0335 to complete script-local functions if the name starts with "s:".
* | vim-patch:8.2.2452: no completion for the 'filetype' optionJan Edmund Lazo2021-03-12
| | | | | | | | | | | | Problem: No completion for the 'filetype' option. Solution: Add filetype completion. (Martin Tournoij, closes vim/vim#7747) https://github.com/vim/vim/commit/d5e8c92816f35ea1a9298084238a08f35958baa6
* | vim-patch:8.2.2591: Poke files are not recognizedJan Edmund Lazo2021-03-12
| | | | | | | | | | | | Problem: Poke files are not recognized. Solution: Add a filetype entry. (Matt Ihlenfield) https://github.com/vim/vim/commit/c80f647512b001fb6952ed10d076d56c3d4b84e0
* | vim-patch:8.2.2588: build failure with tiny features (#14099)Jan Edmund Lazo2021-03-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Build failure with tiny features. Solution: Add #ifdef. Run recover test separately. https://github.com/vim/vim/commit/23b32a8d6bd9ec83c0c6632b7a8bfa544ac0a2f1 N/A patches for version.c: vim-patch:8.2.1048: build failure without the eval feature Problem: Build failure without the eval feature. Solution: Add dummy typedef. https://github.com/vim/vim/commit/9d40c63c7dc8c3eb3886c58dcd334bc7f37eceba vim-patch:8.2.1828: build failure without the +eval feature Problem: Build failure without the +eval feature. Solution: Add dummys for ex_block and ex_endblock. https://github.com/vim/vim/commit/1b1e9df78b9ff98cc5ccff359bead37ce5c54d6b vim-patch:8.2.2293: build failure with Motif Problem: Build failure with Motif. (Tony Mechelynck) Solution: Use empty_option instead of empty_options. https://github.com/vim/vim/commit/bb0956fc65ebe8df1da823f9c4d6a0013d9ba5c1 vim-patch:8.2.2410: build failure without the +profiling feature Problem: Build failure without the +profiling feature. Solution: Add dummy argument to macro. https://github.com/vim/vim/commit/ff0e57fe77b1a87a034191c629730b081f6fb7ad vim-patch:8.2.2514: Vim9: build error in tiny version Problem: Vim9: build error in tiny version. Solution: Add #ifdef. https://github.com/vim/vim/commit/2379f87eb48a4ee6a1d0fc7df964e12a3efe4fd5
* | vim-patch:8.2.2577: compiler warning for type conversionJan Edmund Lazo2021-03-09
|/ | | | | | | | | | | | | | | | | | | | | | | | | Problem: Compiler warning for type conversion. Solution: Add a typecast. (Mike Williams) https://github.com/vim/vim/commit/9355ae41497cbcce58ddd79f9125eb3e9dfe0a43 N/A patches for version.c: vim-patch:8.1.0783: compiler warning for signed/unsigned Problem: Compiler warning for signed/unsigned. Solution: Add type cast. Change type of buffer. (Ozaki Kiichi, closes vim/vim#3827) https://github.com/vim/vim/commit/63c0ccd2b68ce854f294e6f149cc700c7f543674 Neovim was refactored to prefer char type for string functions, not char_u. vim-patch:8.2.2152: screenpos() does not include the WinBar offset Problem: screenpos() does not include the WinBar offset. Solution: Use W_WINROW() instead of directly using w_window. (closes vim/vim#7487) https://github.com/vim/vim/commit/8dd46e72cfb13b8de793c808ee009c45e881903a W_WINROW() was removed so port only the test changes. The test is currently skipped.
* vim-patch:8.2.1043: %a item in 'statusline' not testedJan Edmund Lazo2021-03-02
| | | | | | | | | Problem: %a item in 'statusline' not tested. Solution: Add a test. (Dominique Pellé, closes vim/vim#6318) https://github.com/vim/vim/commit/4014e2ceb03b8aeb947a0c671a099b677c8f2d5d Do not run test_statusline.vim in test_alot.vim because test_statusline.vim runs separately in Vim since patch v8.2.0164.
* vim-patch:8.2.2236: 'scroll' option can change when setting the statuslineJan Edmund Lazo2021-03-02
| | | | | | | | Problem: 'scroll' option can change when setting the statusline or tabline but the option context is not updated. Solution: Update the script context when the scroll option is changed as a side effect. (Christian Brabandt, closes vim/vim#7533) https://github.com/vim/vim/commit/746670604a60cb0356b56c112ffb6d297c679099
* vim-patch:8.2.2560: setting 'winminheigt' does not take tabline into accountJan Edmund Lazo2021-03-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Setting 'winminheigt' does not take tabline into account. Solution: Subtract the tabline from the available height. (closes vim/vim#7899) https://github.com/vim/vim/commit/39d4cab494248131b6fb07aba633aa4da7871a57 N/A patches for version.c: vim-patch:8.1.0680: not easy to see what features are unavailable Problem: Not easy to see what features are unavailable. Solution: Highlight disabled features in the :version output. (Nazri Ramliy, closes vim/vim#3756) https://github.com/vim/vim/commit/c85ffc9daba6f66d5958ae80249d26f7f81bfced vim-patch:8.2.2196: :version output has extra spaces in compile and link command Problem: :version output has extra spaces in compile and link command. Solution: Adjust QUOTESED. (closes vim/vim#7505) https://github.com/vim/vim/commit/abcbb0e9ad43fc25077e1681528e72ddcbeed300 vim-patch:8.2.2551: MS-Windows: colors test file is not installed Problem: MS-Windows: colors test file is not installed. Solution: Also copy runtime/colors/tools. (Ken Takata, closes vim/vim#7902) https://github.com/vim/vim/commit/d0bce504ec52def729fffa35c8896979af348d32 vim-patch:8.2.2559: MS-Windows: guifont test fails on Windows XP Problem: MS-Windows: guifont test fails on Windows XP. Solution: Check windowsversion(). https://github.com/vim/vim/commit/3650fd709807d5ac182e28d952cbd790c1ad0a6a
* vim-patch:8.2.2233: cannot convert a byte index into a character index (#13978)kuuote2021-02-22
| | | | | Problem: Cannot convert a byte index into a character index. Solution: Add charidx(). (Yegappan Lakshmanan, closes vim/vim#7561) https://github.com/vim/vim/commit/17793ef23aae0bc94539390ccfe5e63b0ad39ff2