aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* build(deps): bump LuaJIT to HEAD - 50936d784 (#19343)Christian Clason2022-07-14
|
* fix(treesitter): don't error when node argument of predicate is nil (#19355)Stephan Seitz2022-07-14
| | | | | | When the node mentioned in a predicate is not required for the query then predicates putting restrictions on that node shouldn't run. Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/2600
* Merge pull request #19353 from zeertzjq/vim-8.2.0369zeertzjq2022-07-14
|\ | | | | vim-patch:8.2.{0342,0347,0369}: insufficient test coverage
| * vim-patch:8.2.0369: various Normal mode commands not fully testedzeertzjq2022-07-14
| | | | | | | | | | | | | | | | | | | | Problem: Various Normal mode commands not fully tested. Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#5751) https://github.com/vim/vim/commit/1671f4488105ee12a6a8558ae351436c26ab55fc Cherry-pick a fix from patch 8.2.3162. Omit test_iminsert.vim as previous patches to that file are N/A, and Nvim doesn't support iminsert=2 either, so that test isn't useful.
| * vim-patch:8.2.0347: various code not covered by testszeertzjq2022-07-14
| | | | | | | | | | | | | | | | Problem: Various code not covered by tests. Solution: Add more test coverage. (Yegappan Lakshmanan, closes vim/vim#5720) https://github.com/vim/vim/commit/91ffc8a5f5c7b1c6979b3352a12ed779d11173a9 Test_Ex_echo_backslash() is not applicable to Vim enhanced Ex mode.
| * vim-patch:8.2.0342: some code in ex_getln.c not covered by testszeertzjq2022-07-14
|/ | | | | | | | | | Problem: Some code in ex_getln.c not covered by tests. Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#5717) https://github.com/vim/vim/commit/0546d7df13b041833121b2d56036e1c62ea3b0c1 Nvim doesn't support imsearch=2, commenting out that line is enough. Test_Ex_append() is not applicable to Vim enhanced Ex mode. Omit test_iminsert.vim as previous patches to that file are N/A.
* build(deps): bump tree-sitter to HEAD - 1f1b1eb45 (#19347)Christian Clason2022-07-14
|
* build(deps): bump Luv to 1.44.2-0 (#19346)Christian Clason2022-07-14
|
* build: gracefully handle error in git-version #19289kylo2522022-07-14
| | | | | | | | - only update git-version if both of these conditions are met: - `git` command succeeds - `versiondef_git.h` would change (SHA1-diff) - else print a status/warning message also move version generation out of Lua into cmake.
* feat(eval)!: input() support any type for "cancelreturn" in a dict (#19357)zeertzjq2022-07-14
|
* vim-patch:8.2.0969: assert_equal() output for dicts is hard to figure out ↵zeertzjq2022-07-13
| | | | | | | (#19317) Problem: Assert_equal() output for dicts is hard to figure out. Solution: Only show the different items. https://github.com/vim/vim/commit/4a021dfbeee88ac09d07e257912485314ecdcabe
* fix(exmode): flush messages before printing a line after pressing Enter (#19341)zeertzjq2022-07-13
|
* vim-patch:8.2.0035: saving and restoring called_emsg is clumsy (#19335)zeertzjq2022-07-13
| | | | | Problem: Saving and restoring called_emsg is clumsy. Solution: Count the number of error messages. https://github.com/vim/vim/commit/53989554a44caca0964376d60297f08ec257c53c
* build(deps): bump libuv to v1.44.2 (#19338)Christian Clason2022-07-12
|
* Merge pull request #19334 from zeertzjq/vim-8.2.0275zeertzjq2022-07-12
|\ | | | | vim-patch:8.2.{0275,0293,5050}
| * vim-patch:8.2.5050: using freed memory when searching for pattern in pathzeertzjq2022-07-12
| | | | | | | | | | | | | | | | Problem: Using freed memory when searching for pattern in path. Solution: Make a copy of the line. https://github.com/vim/vim/commit/409510c588b1eec1ae33511ae97a21eb8e110895 Cherry-pick Test_def_search() -> Test_macro_search() from patch 8.2.0369
| * vim-patch:8.2.0293: various Ex commands not sufficiently testedzeertzjq2022-07-12
| | | | | | | | | | | | | | | | | | Problem: Various Ex commands not sufficiently tested. Solution: Add more test cases. (Yegappan Lakshmanan, closes vim/vim#5673) https://github.com/vim/vim/commit/818fc9ad143911b2faa0d7cee86724aa70a02080 Needs to assert E170 instead of E580 because patch 8.2.3486 has been ported but patch 8.2.1183 hasn't.
| * vim-patch:8.2.0275: some Ex code not covered by testszeertzjq2022-07-12
|/ | | | | | Problem: Some Ex code not covered by tests. Solution: Add test cases. (Yegappan Lakshmanan, closes vim/vim#5659) https://github.com/vim/vim/commit/406cd90f1963ca60813db91c413eef4b1b78ee44
* fix(lsp): account for initializing servers in vim.lsp.start (#19329)Nicolas Hillegeer2022-07-12
| | | Fixes #19326
* Merge pull request #19332 from zeertzjq/vim-8.2.0270zeertzjq2022-07-12
|\ | | | | vim-patch:8.2.{0270,2732}
| * vim-patch:8.2.2732: prompt for s///c in Ex mode can be wrongzeertzjq2022-07-12
| | | | | | | | | | | | Problem: Prompt for s///c in Ex mode can be wrong. Solution: Position the cursor before showing the prompt. (closes vim/vim#8073) https://github.com/vim/vim/commit/e5b0b98a90acf420bb611fc99534982c98d0645b
| * vim-patch:8.2.0270: some code not covered by testszeertzjq2022-07-12
| | | | | | | | | | | | Problem: Some code not covered by tests. Solution: Add test cases. (Yegappan Lakshmanan, closes vim/vim#5649) https://github.com/vim/vim/commit/bc2b71d44a0b90b6aeb3534a76912fccbe5577df
| * fix(exmode): do not throttle messages when pressing enter to print linezeertzjq2022-07-12
|/
* Merge pull request #19330 from zeertzjq/vim-8.2.0203zeertzjq2022-07-12
|\ | | | | vim-patch:8.2.0203: :helptags and some other functionality not tested
| * vim-patch:8.2.0203: :helptags and some other functionality not testedzeertzjq2022-07-12
| | | | | | | | | | | | Problem: :helptags and some other functionality not tested. Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#5567) https://github.com/vim/vim/commit/e20b9ececa37a81c0340a78f61e57fa1bf46b06d
| * fix(cmdline): fix passing -1 as charzeertzjq2022-07-12
|/
* fix(lsp): don't attach a client in lsp.start() if there is none (#19328)Nicolas Hillegeer2022-07-11
| | | | | | | vim.lsp.start_client() may fail (for example if the `cmd` is not executable). It produces a nice error notification in this case. Passing the `nil` value returned from an erroneous `vim.lsp.start_client()` call into `vim.lsp.buf_attach_client()` causes a meaty param validate exception message. Avoid this.
* Merge pull request #19277 from zeertzjq/vim-8.1.1855zeertzjq2022-07-12
|\ | | | | vim-patch:8.1.{1855,1859,1864,1867}: flaky timer tests
| * test(old): test_timers.vim call timer_stopall() in SetUp() insteadzeertzjq2022-07-12
| |
| * vim-patch:8.1.1867: still a timer test that is flaky on Maczeertzjq2022-07-12
| | | | | | | | | | | | Problem: Still a timer test that is flaky on Mac. Solution: Loop with a sleep instead of one fixed sleep. https://github.com/vim/vim/commit/315244d85b9b8faae549b1700e8cc2e45eaa68ea
| * vim-patch:8.1.1864: still a timer test that is flaky on Maczeertzjq2022-07-12
| | | | | | | | | | | | Problem: Still a timer test that is flaky on Mac. Solution: Adjust the sleep times. https://github.com/vim/vim/commit/413c04e8d515f604a17b90295c86a0fd547518ba
| * vim-patch:8.1.1859: timer test sometimes fails on Maczeertzjq2022-07-12
| | | | | | | | | | | | Problem: Timer test sometimes fails on Mac. Solution: Show more info when it fails. https://github.com/vim/vim/commit/427dddf014fea1326ea7f8c0951b0667dc037409
| * vim-patch:8.1.1855: another failing timer testzeertzjq2022-07-12
|/ | | | | | | | | Problem: Another failing timer test. Solution: Assert that timers are finished by the end of the test. Rename test functions to make them easier to find. https://github.com/vim/vim/commit/9a2fddcf04192a643dc97601d689c27f5bc5184f Use test_garbagecollect_now() in Test_timer_retain_partial() like Vim.
* Merge pull request #19320 from zeertzjq/vim-8.2.0212zeertzjq2022-07-12
|\ | | | | vim-patch:8.2.{0212,0243,0250}: insufficient tests
| * vim-patch:8.2.0243: insufficient code coverage for ex_docmd.c functionszeertzjq2022-07-12
| | | | | | | | | | | | | | | | | | Problem: Insufficient code coverage for ex_docmd.c functions. Solution: Add more tests. (Yegappan Lakshmanan, closes vim/vim#5618) https://github.com/vim/vim/commit/9f6277bdde97b7767ded43a0b5a2023eb601b3b7 Cherry-pick Test_window_only() from patch 8.2.0203. Cherry-pick a memory leak fix from patch 8.2.0399.
| * vim-patch:8.2.{0212,0250}zeertzjq2022-07-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vim-patch:8.2.0212: missing search/substitute pattern hardly tested Problem: Missing search/substitute pattern hardly tested. Solution: Add test_clear_search_pat() and tests. (Yegappan Lakshmanan, closes vim/vim#5579) https://github.com/vim/vim/commit/07ada5ff2fd8f22ed3233ae5c4ddf87c7b3f56fe vim-patch:8.2.0250: test_clear_search_pat() is unused Problem: test_clear_search_pat() is unused. Solution: Remove the function. (Yegappan Lakshmanan, closes vim/vim#5624) https://github.com/vim/vim/commit/4f5776c17cd86f904a7e2f92db297c73e28939b7
| * test(old): align defaults to Vim before each test insteadzeertzjq2022-07-12
|/
* vim-patch:8.2.3363: when :edit reuses the current buffer the alternate file ↵zeertzjq2022-07-11
| | | | | | | | | | | | is set (#19306) Problem: When :edit reuses the current buffer the alternate file is set to the same buffer. Solution: Only set the alternate file when not reusing the buffer. (closes vim/vim#8783) https://github.com/vim/vim/commit/b8bd2e6ebab03baf2672067067a599df69a278c0 Cherry-pick Test_cmdline_expand_special() from patches 8.2.{0243,2873}. Move Test_cmd_backtick() to the right place.
* fix(lsp): abort pending changes after flush when debouncing (#19314)Rishikesh Vaishnav2022-07-11
| | | | | | | | | | | Issuing a server request triggers `changetracking.flush` so as to make sure we're not operating on a stale state. This immediately triggers notification of any pending changes (as a result of debouncing) to the server. However, this happens in addition to the notification that is waiting on the debounce delay. Because we `nil` `buf_state.pending_change` when it is called, the fix is to also check that this is non-`nil` when it is called and exit if it is, as this being `nil` would mean that it originates from a pending change that has already been flushed out.
* feat(lsp): defaults: tagfunc, omnifunc (#19003)Mathias Fußenegger2022-07-10
| | | set `tagfunc` to `vim.lsp.tagfunc` and `omnifunc` to `vim.lsp.omnifunc` if empty when attaching a server
* Merge pull request #19305 from zeertzjq/vim-8.2.3530zeertzjq2022-07-10
|\ | | | | vim-patch:8.2.{3530,3531}: ":buf \{a}" fails while ":edit \{a}" works
| * vim-patch:8.2.3531: command line completion test fails on MS-Windowszeertzjq2022-07-10
| | | | | | | | | | | | Problem: Command line completion test fails on MS-Windows. Solution: Do not test with "\{" on MS-Windows. https://github.com/vim/vim/commit/39c47c310487b72bc78ff197b5a068a0bcf830de
| * vim-patch:8.2.3530: ":buf \{a}" fails while ":edit \{a}" workszeertzjq2022-07-10
| | | | | | | | | | | | Problem: ":buf \{a}" fails while ":edit \{a}" works. Solution: Unescape "\{". (closes vim/vim#8917) https://github.com/vim/vim/commit/21c1a0c2f10575dbb72fa873d33f0c1f6e170aa7
* | Merge pull request #18774 from zeertzjq/float-height-width-fixzeertzjq2022-07-10
|\ \ | | | | | | Fix some floating window height and width bugs
| * | test(float_spec): make indent more consistentzeertzjq2022-07-10
| | |
| * | fix(float): fix mouse drag position if float window turned to a splitzeertzjq2022-07-10
| | |
| * | fix(float): fix glitch when making float window with border a splitzeertzjq2022-07-10
| | |
| * | fix(float): fix float window with winbar cannot have screen heightzeertzjq2022-07-10
| | |
| * | fix(float): fix float window border drawing with winbarzeertzjq2022-07-10
|/ /
* | fix(lsp): pcall nvim_del_augroup_by_name (#19302)Christian Clason2022-07-10
| | | | | | fixup for #19283