aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
* vim-patch:8.2.1472: ":argdel" does not work like ":.argdel" as documentedJan Edmund Lazo2020-08-17
| | | | | | | | Problem: ":argdel" does not work like ":.argdel" as documented. (Alexey Demin) Solution: Make ":argdel" work like ":.argdel". (closes vim/vim#6727) Also fix giving the error "0 more files to edit". https://github.com/vim/vim/commit/7b22117c4ecf383b6f35acef041773a83ec28220
* lua: add vim.register_keystroke_callback (#12536)TJ DeVries2020-08-14
| | | | | | | | | | | | | | | * feat: Add vim.register_keystroke_callback * fixup: Forgot to remove mention of old option * fixup: Answer jamessan comments * fixup: Answer norcalli comments * fixup: portability * Update runtime/doc/lua.txt Co-authored-by: Ashkan Kiani <ashkan.k.kiani@gmail.com>
* Merge pull request #12739 from vigoux/ts-refactor-predicatesTJ DeVries2020-08-14
|\ | | | | treesitter: refactor
| * treesitter: add and test vim-match? predicateThomas Vigouroux2020-08-13
| |
| * treesitter: add contains? predicateThomas Vigouroux2020-08-13
| |
| * treesitter: refactor and use lua regexesThomas Vigouroux2020-08-13
| |
* | fix: runtimepath always updates lua package.pathTJ DeVries2020-08-10
|/
* tests/terminal/tui: wait 1ms to avoid data race in FreeBSDJan Edmund Lazo2020-08-02
|
* vim-patch:8.2.1004: line numbers below filler lines not always updatedJan Edmund Lazo2020-08-02
| | | | | | | Problem: Line numbers below filler lines not always updated. Solution: Don't break out of the win_line() loop too early. (Christian Brabandt, closes vim/vim#6294, closes vim/vim#6138) https://github.com/vim/vim/commit/511feec6f0a9e954f1d7353425fa51232b1a8e88
* vim-patch:8.2.0072: memory test still fails on Cirrus CIJan Edmund Lazo2020-08-02
| | | | | | | | | | | | | | | | | | | | | | | Problem: Memory test still fails on Cirrus CI. Solution: Allow for a tiny bit more tolerance in the upper limit. https://github.com/vim/vim/commit/bb062c1588c324a1ce4cf01fd5e0780e83aaabe4 Check memory usage after Neovim sourced the Vimscript files. https://github.com/neovim/neovim/pull/12679 N/A patches for version.c: vim-patch:8.2.0062: memory test is flaky on FreeBSD Problem: Memory test is flaky on FreeBSD. Solution: Add a short sleep before getting the first size. https://github.com/vim/vim/commit/e7538ae997b3983d0c91a886a74ebacedd752164 vim-patch:8.2.0071: memory test often fails on Cirrus CI Problem: Memory test often fails on Cirrus CI. Solution: Allow for more tolerance in the upper limit. Remove sleep. https://github.com/vim/vim/commit/1832d12aea30f1533f3c461d9e1530d10f66b162
* vim-patch:8.1.2172: spell highlight is wrong at start of the lineJan Edmund Lazo2020-08-02
| | | | | | | | | | | | | | Problem: Spell highlight is wrong at start of the line. Solution: Fix setting the "v" variable. (closes vim/vim#5078) https://github.com/vim/vim/commit/7751d1d1a3d447d0d48f57f34e0da9f7c6ac433d Skip spell tests in OpenBSD. Nvim or screen likely crashed. Revist once issue #12104 is fixed. Skip the test for the following reasons: - unknown regression caused by https://github.com/neovim/neovim/issues/12104 - cannot revert failing test from https://github.com/neovim/neovim/commit/ed0d135247790f67ead7f1a8c21a020790e80a74
* Merge pull request #12699 from jamessan/getnJames McCoy2020-07-31
|\
| * lua: Use #var instead of deprecated table.getn(var)James McCoy2020-07-31
| |
* | shada: fix failed assertion on exit (#12692)erw72020-07-31
|/ | | | | | If set the number of history saves is 0, assertions fail when inserting an entry on exit. Dont insert an entry when the number of saves is 0 fixes the issue. fixes #11497
* Revert "lsp: Fix text edits with the same start position (#12434)" (#12564)Andreas Johansson2020-07-30
| | | This reverts commit 44fe8828f06a22bc9aa3617a6fd8aae447a838de.
* terminal: fix terminal attribute overflowerw72020-07-29
| | | | fixes #11548
* buffer_updates: emit valid old_byte_sizeThomas Vigouroux2020-07-21
| | | | | Test this using treesitter highlighting, which is based on this old_byte_size.
* eval: improve ex_execute (#12445)erw72020-07-20
|
* lua: Fix crash on unprotected lua errors (#12658)TJ DeVries2020-07-19
| | | | | | | | | | | | | | | | | | Can be reproduced with a script like this: -- in some lua file vim.fn.timer_start(10, function() error("uh....") end) -- will cause neovim to crash with the following error. PANIC: unprotected error in call to Lua API (nlua_CFunction_func_call failed.) After this, it will instead print the error message from the top of the stack, like so. tmp/error_nvim.lua:10: uh... Also added an example test. Previously this test caused the embedded nvim to panic.
* Merge pull request #12448 from erw7/fix-shada-write-error-on-exitMatthieu Coudron2020-07-19
|\ | | | | Fix shada write error on exit, vim-patch:8.2.0920
| * vim-patch:8.2.0920: writing viminfo fails with a circular referenceerw72020-06-09
| | | | | | | | | | | | Problem: Writing viminfo fails with a circular reference. Solution: Use copyID to detect the cycle. (closes vim/vim#6217) https://github.com/vim/vim/commit/5b157fe2edfdce5f77080aeac2b4a03f39eb1c1a
| * shada: fix write E5004 error on exiterw72020-06-08
| | | | | | | | | | Fix the problem of failing to write shada when the global variable contains Funcref or Partial.
* | Merge pull request #12611 from janlazo/vim-8.0.1531Matthieu Coudron2020-07-19
|\ \ | | | | | | vim-patch:8.0.{1531,1544,1589,1591,1712,1745,1747},8.1.{819},8.2.{420,539,893,894,895,899,1114,1118,1169,1170,1171,1172,1173,1177,1179,1180,1181,1187,1188,1196,1198,1211,1214,1215,1222}
| * | vim-patch:8.2.0539: comparing two NULL list failsJan Edmund Lazo2020-07-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Comparing two NULL list fails. Solution: Change the order of comparing two lists. https://github.com/vim/vim/commit/7b293c730b07d1586688e622b8d9cbbb4a52379b N/A patches for version.c: vim-patch:8.2.1187: terminal2 test sometimes hangs in the GUI on Travis Problem: Terminal2 test sometimes hangs in the GUI on Travis. Solution: Disable Test_zz2_terminal_guioptions_bang() for now. https://github.com/vim/vim/commit/c85156bb897085d7f5a8e4e180287f87bf19b948 vim-patch:8.2.1188: memory leak with invalid json input Problem: Memory leak with invalid json input. Solution: Free all keys at the end. (Dominique Pellé, closes vim/vim#6443, closes vim/vim#6442) https://github.com/vim/vim/commit/6d3a7213f58da834b0fc869d05f87e86010c66cf vim-patch:8.2.1196: build failure with normal features Problem: Build failure with normal features. Solution: Add #ifdef. https://github.com/vim/vim/commit/83e7450053399942e1c9efa802c568b51d948541 vim-patch:8.2.1198: terminal2 test sometimes hangs in the GUI on Travis Problem: Terminal2 test sometimes hangs in the GUI on Travis. Solution: Move test function to terminal3 to see if the problem moves too. https://github.com/vim/vim/commit/a4b442614c5ca4ebf32acf5cf0b7b718496f1c94
| * | vim-patch:8.1.0819: a failed assert with a long string is hard to readJan Edmund Lazo2020-07-19
| | | | | | | | | | | | | | | | | | Problem: A failed assert with a long string is hard to read. Solution: Shorten the assert message. https://github.com/vim/vim/commit/865767126e97d9ac65e052a657b29bbc32dcb512
* | | startup: fix stall issue with -D options (#12652)erw72020-07-19
|/ / | | | | fixes #12647.
* | lsp: Add support for call hierarchies (#12556)cbarrete2020-07-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * LSP: Add support for call hierarchies * LSP: Add support for call hierarchies * LSP: Add support for call hierarchies * LSP: Jump to call location Jump to the call site instead of jumping to the definition of the caller/callee. * LSP: add tests for the call hierarchy callbacks * Fix linting error Co-authored-by: Cédric Barreteau <>
* | Reuse inccommand preview window (fix #11529) (#12612)Ville Hakulinen2020-07-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Reuse inccommand preview window Currently, show_sub (inside ex_substitute) creates a new split on each run for its existing buffer, and ex_substitute calls close_windows for it. This functionality seems to relay in delayed operations on window structures where the close event on the newest window is "cancelled" by win_grid_alloc. But for multigrid, there is optimization in place in win_grid_alloc which causes any (unnecessary?) allocations to be skipped, and thus inccommand preview window is not preserved but closed immediately. Alternative fix would be to remove said optimization, but the whole "lets create a new split each time and trash the earlier window" seems too wasteful. Fix #11529 * Update failing test The failing test sets inccommand=split and does `:%s/.`, but isn't expecting to get any contents for the preview window, other than the windows status line. Update the test to include the preview window contents too.
* | lua: Add ability to pass tables with __callTJ DeVries2020-07-10
| | | | | | | | | | | | | | | | | | | | | | | | vim-patch:8.2.1054: not so easy to pass a lua function to Vim vim-patch:8.2.1084: Lua: registering function has useless code I think I have also opened up the possibility for people to use these callbacks elsewhere, since I've added a new struct that we should be able to use. Also, this should allow us to determine what the state of a list is in Lua or a dictionary in Lua, since we now can track the luaref as we go.
* | lua: Add ability to pass lua functions directly to vimLTJ DeVries2020-07-10
| |
* | treesitter: update test to show overlapping worksThomas Vigouroux2020-07-10
| |
* | Merge pull request #12531 from BK1603/autoread-tuiMatthieu Coudron2020-07-04
|\ \ | | | | | | Autoread now works in TUI too. The checktimestamp test is run at most once every 2 seconds not to poll too much and also because it doesn't make sense on some filesystems. A solution based on filesystem notifications should arrive soon.
| * | removed retryBK16032020-07-03
| | |
| * | replaced sleep with a changed mtime for the test fileBK16032020-07-02
| | |
| * | removed unnecessary feed callsBK16032020-07-02
| | |
| * | Added testBK16032020-07-02
| | |
* | | lsp: Use nvim_buf_get_lines in locations_to_items and add more tests (#12357)Mathias Fußenegger2020-06-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * LSP: Add tests & use nvim_buf_get_lines in locations_to_items This is to add support for cases where the server returns a URI in the locations that does not have a file scheme but needs to be loaded via a BufReadCmd event. * LSP: Don't iterate through all lines in locations_to_items * fixup! LSP: Don't iterate through all lines in locations_to_items * fixup! fixup! LSP: Don't iterate through all lines in locations_to_items * fixup! fixup! fixup! LSP: Don't iterate through all lines in locations_to_items
* | | Merge pull request #12491 from vigoux/treesitter-set-rangesMatthieu Coudron2020-06-30
|\ \ \ | | | | | | | | [RDY] Treesitter set ranges
| * | | treesitter: use single nodes in set_rangesThomas Vigouroux2020-06-29
| | | | | | | | | | | | | | | | fixup! treesitter: fix lint
| * | | treesitter: separate tests into smaller piecesThomas Vigouroux2020-06-29
| | | |
| * | | treesitter: use nodes to mark rangesThomas Vigouroux2020-06-29
| | | |
| * | | treesitter: test newly added set_included_rangesThomas Vigouroux2020-06-29
| |/ /
* | | Merge pull request #12252 from dlukes/formatting-syncHirokazu Hata2020-06-27
|\ \ \ | |/ / |/| |
| * | lsp: Add sync variant of LSP formattingDavid Lukes2020-06-22
| | | | | | | | | | | | | | | Also, factor out a `vim.lsp.util.get_effective_tabstop()` helper and add tests for it.
* | | terminal: preserve mode when using <Cmd>wincmd in terminal mode (#12254)Ghjuvan Lacambre2020-06-22
| | |
* | | Merge pull request #12455 from janlazo/vim-8.0.1554Matthieu Coudron2020-06-22
|\ \ \ | | | | | | | | [RDY]vim-patch:8.0.1554,8.1.1977,8.2.{927,930,932,938,954,963,964,966,980,983,998,999}
| * | | vim-patch:8.2.0966: 'shortmess' flag "n" not used in two placesJan Edmund Lazo2020-06-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: 'shortmess' flag "n" not used in two places. Solution: Make use of the "n" flag consistent. (Nick Jensen, closes vim/vim#6245, closes vim/vim#6244) https://github.com/vim/vim/commit/722e505d1a55dfde5ab62241d10da91d2e10c3c1
| * | | vim-patch:8.0.1554: custom plugins loaded with --cleanJan Edmund Lazo2020-06-18
| |/ / | | | | | | | | | | | | | | | Problem: Custom plugins loaded with --clean. Solution: Do not include the home directory in 'runtimepath'. https://github.com/vim/vim/commit/072687032683b1994d25a114893d9a6f8bc36612
* / / eval: fix assertion failure in garbage collection (#12436)erw72020-06-22
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * eval: fix assertion failure in garbage collection fixes #12387, #12430 Lists with CopyID+1 linked only from previous_funccal may be removed in the garbage collection. Therefore, the terms of the assertions are not correct. This can be confirmed by the following (The l:x with CopyID+1 of the first function call needs to be removed by garbage collection): func! s:f() let l:x = [1] let g:x = l: endfunc for _ in range(2) call s:f() endfor call garbagecollect() " press any key * test: add test for #12387, #12430
* | lsp: Add new highlight groups used in show_line_diagnostics (#12473)francisco souza2020-06-18
| | | | | | | | | | | | | | | | | | * lsp: support custom hl groups in show_line_diagnostics Closes #12472. * runtime: add docs for the new lsp highlight groups Co-authored-by: francisco souza <fsouza@users.noreply.github.com>