aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* vim-patch:8.2.4808: unused item in engine structzeertzjq2022-04-24
| | | | | | Problem: Unused item in engine struct. Solution: Remove "expr". Add comment with tags. https://github.com/vim/vim/commit/33d3ce640c63366e26b84c8d6f5798187a258ee2
* build(clang-format): align with project style #18192dundargoc2022-04-23
|
* docs: make docstring consistent with parameters #18178dundargoc2022-04-23
| | | Closes: https://github.com/neovim/neovim/issues/12691
* ci(backport): remove triggering by comment (#18210)zeertzjq2022-04-23
| | | | Triggering by comment is not needed. Applying the label is enough to trigger the backport action.
* Merge pull request #18197 from dundargoc/build/clint/python3Gregory Anders2022-04-23
|\ | | | | build/clint/python3
| * build(clint): remove all python2-isms with pyupgradeDundar Goc2022-04-20
| | | | | | | | | | The script is functionally the same, just with some nicer syntactic sugar thanks to only supporting python3.
| * build(clint): change shebang to python3Dundar Goc2022-04-20
| | | | | | | | | | | | There are distributions that doesn't symlink python to python3. This will make clint work for these without any additional steps from the user.
* | fix(ftdetect): source plugins in autogroup (#18237)Christian Clason2022-04-23
| | | | | | In `filetype.lua`, source runtime `ftdetect` scripts within the `filetypedetect` augroup, same as `filetype.vim` (and only do so if `g:did_load_ftdetect` does not exist).
* | Merge pull request #18226 from zeertzjq/vim-8.2.4805zeertzjq2022-04-23
|\ \ | | | | | | vim-patch:8.2.{4805,4812}: CurSearch used for all matches in current line
| * | vim-patch:8.2.4812: unused struct itemzeertzjq2022-04-23
| | | | | | | | | | | | | | | | | | Problem: Unused struct item. Solution: Remove "lines" match_T. Simplify the code. (closes vim/vim#10256) https://github.com/vim/vim/commit/8279cfe49961b3711c84c66a9954c9f70e9b78c8
| * | vim-patch:8.2.4805: CurSearch used for all matches in current linezeertzjq2022-04-23
|/ / | | | | | | | | | | Problem: CurSearch used for all matches in current line. Solution: Don't use the non-zero line count. (closes vim/vim#10247) https://github.com/vim/vim/commit/9b36750640e8e89f18afa1446ed80fdbdf0fcac0
* | fix(lua): don't mutate opts parameter of vim.keymap.del (#18227)Andrey Mishchenko2022-04-23
| | | | | | | | | | | | `vim.keymap.del` takes an `opts` parameter that lets caller refer to and delete buffer-local mappings. For some reason the implementation of `vim.keymap.del` mutates the table that is passed in, setting `opts.buffer` to `nil`. This is wrong and also undocumented.
* | fix(treesitter): create new parser if language is not the same as cached ↵Chinmay Dalal2022-04-22
| | | | | | | | parser (#18149)
* | Merge pull request #18211 from clason/update-inspectbfredl2022-04-22
|\ \ | | | | | | chore: update inspect.lua to 3.1.3
| * | chore: update inspect.lua to 3.1.3Christian Clason2022-04-21
| | |
* | | docs(lua): explain and link to lua patterns (#18206)Christian Clason2022-04-21
| | | | | | | | | also correct explanation of when it's allowed to omit parens in Lua function calls
* | | refactor(normal): fix most clint warnings (#18196)dundargoc2022-04-21
| | |
* | | Merge pull request #18209 from zeertzjq/vim-8.2.4759zeertzjq2022-04-21
|\ \ \ | | | | | | | | vim-patch:8.2.4759: CurSearch highlight does not work for multi-line match
| * | | vim-patch:8.2.4759: CurSearch highlight does not work for multi-line matchzeertzjq2022-04-21
|/ / / | | | | | | | | | | | | | | | Problem: CurSearch highlight does not work for multi-line match. Solution: Check cursor position before adjusting columns. (closes vim/vim#10133) https://github.com/vim/vim/commit/693ccd11606b59eb0f81c6c1948679e61ada4022
* | | Merge pull request #18182 from zeertzjq/vim-8.2.2472zeertzjq2022-04-21
|\ \ \ | |/ / |/| | vim-patch:8.1.1756,8.2.{2472,2474,2475,2476,2477,4791,4802}: autocommand fixes
| * | vim-patch:8.2.4802: test is not cleaned upzeertzjq2022-04-21
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Test is not cleaned up. Solution: Make test clean up after itself. Avoid NUL. (closes vim/vim#10233) https://github.com/vim/vim/commit/7851c69a120ea6ce8c122dd7198adbe5aec83ea5 Adapt test_autocmd_vimgrep() to Nvim.
| * | test: add a Lua functional test for NoName buffer event orderCharlie Groves2022-04-21
| | |
| * | vim-patch:8.2.4791: events triggered in different order when reusing bufferzeertzjq2022-04-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Autocmd events triggered in different order when reusing an empty buffer. Solution: Call buff_freeall() earlier. (Charlie Groves, closes vim/vim#10198) https://github.com/vim/vim/commit/fef4485ef58d5937b170c6dc69431359469fc9cd Test failure becomes very strange.
| * | vim-patch:8.2.2477: autocommand tests hang on MS-Windowszeertzjq2022-04-21
| | | | | | | | | | | | | | | | | | Problem: Autocommand tests hang on MS-Windows. Solution: Skip a couple of tests. Fix file name. https://github.com/vim/vim/commit/dd07c02232e91ee963b91a4477179d4b9548b862
| * | vim-patch:8.2.2476: using freed memory when splitting window while closing ↵zeertzjq2022-04-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | buffer Problem: Using freed memory when using an autocommand to split a window while a buffer is being closed. Solution: Disallow splitting when the buffer has b_locked_split set. https://github.com/vim/vim/commit/983d83ff1cd796ff321074335fa53fbe7ac45a46 Put the error message in window.c. Cherry-pick a memory leak fix from Vim patch 8.2.0399. Test still fails.
| * | vim-patch:8.2.2475: autocommand tests hangs on MS-Windowszeertzjq2022-04-21
| | | | | | | | | | | | | | | | | | Problem: Autocommand tests hangs on MS-Windows. Solution: Skip one test. https://github.com/vim/vim/commit/dfc3db76b9de217542cc9258301c1b4818a51cd0
| * | vim-patch:8.2.2474: using freed memory when window is closed by autocommandzeertzjq2022-04-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Using freed memory when window is closed by autocommand. (houyunsong) Solution: Check the window pointer is still valid. https://github.com/vim/vim/commit/2c7080bf1ceef4a7779644fd428b2386a0676794 Add missing comment from Vim patch 8.0.1420. Test fails.
| * | vim-patch:8.2.2472: crash when using command line window in an autocommandzeertzjq2022-04-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Crash when using command line window in an autocommand. (houyunsong) Solution: Save and restore au_new_curbuf. https://github.com/vim/vim/commit/aad5f9d79a2b71e9d2581eace3652be156102b9d Nvim has removed :open, so use :edit in the test instead.
| * | vim-patch:8.1.1756: autocommand that splits window messes up window layoutzeertzjq2022-04-21
|/ / | | | | | | | | | | | | | | | | | | | | Problem: Autocommand that splits window messes up window layout. Solution: Disallow splitting a window while closing one. In ":all" give an error when moving a window will not work. https://github.com/vim/vim/commit/1417c766f55e5959b31da488417b7d9b141404af Expected error number was changed to E242 in Vim in patch 8.2.1183, and patch 8.2.2420 (which has already been ported) made the test no longer throw E249 in Vim, so just use E242 in the test.
* | Merge pull request #18200 from atusy/doc-vim-keymap-setzeertzjq2022-04-21
|\ \ | | | | | | docs: vim.keymap.set can specify buffer as an option
| * | docs: vim.keymap.set can specify buffer as an optionatusy2022-04-21
|/ /
* | Merge pull request #18199 from zeertzjq/vim-8.2.4797zeertzjq2022-04-21
|\ \ | | | | | | vim-patch:8.2.4797: getwininfo() may get oudated values
| * | vim-patch:8.2.4797: getwininfo() may get oudated valueszeertzjq2022-04-21
| | | | | | | | | | | | | | | | | | | | | | | | Problem: getwininfo() may get oudated values. Solution: Make sure w_botline is up-to-date. (closes vim/vim#10226) https://github.com/vim/vim/commit/8530b41fd3872c9a1349b083470d565677948518 Correct test order and add a modeline in test_bufwintabinfo.vim.
* | | Merge pull request #18180 from zeertzjq/vim-8.2.4792zeertzjq2022-04-21
|\ \ \ | |/ / |/| | vim-patch:8.2.{0358,4792,4794}: indent operator creates an undo entry for every line
| * | vim-patch:8.2.4794: compiler warning for not initialized variablezeertzjq2022-04-21
| | | | | | | | | | | | | | | | | | Problem: Compiler warning for not initialized variable. Solution: Initialize the variable. (John Marriott) https://github.com/vim/vim/commit/4c84dd33ad739237bb38bb4e51702af972b5e507
| * | vim-patch:8.2.4792: indent operator creates an undo entry for every linezeertzjq2022-04-21
| | | | | | | | | | | | | | | | | | Problem: Indent operator creates an undo entry for every line. Solution: Create one undo entry for all lines. (closes vim/vim#10227) https://github.com/vim/vim/commit/e4686989944bffdbcf59890aa21091b135528618
| * | vim-patch:8.2.0358: insufficient testing for indent.czeertzjq2022-04-21
|/ / | | | | | | | | | | | | | | | | Problem: Insufficient testing for indent.c. Solution: Add indent tests. (Yegappan Lakshmanan, closes vim/vim#5736) https://github.com/vim/vim/commit/bd7206e02c957f0619e68e1628e2a3e91dd41e06 Cherry-pick Test_ex_mode() changes from Vim patches 8.2.{0342,0347}. Reorder test_expand_func.vim to match upstream.
* | Merge pull request #18189 from zeertzjq/vim-8.2.4795zeertzjq2022-04-21
|\ \ | | | | | | vim-patch:8.2.{4795,4796,4801}: 'cursorbind' scrolling depends on whether 'cursorline' is set
| * | vim-patch:8.2.4801: fix for cursorbind fix not fully testedzeertzjq2022-04-21
| | | | | | | | | | | | | | | | | | Problem: Fix for cursorbind fix not fully tested. Solution: Add another test case. (Christian Brabandt, closes vim/vim#10240) https://github.com/vim/vim/commit/3fd7480cd25f1e939fc2362e0644d497bcc81b71
| * | vim-patch:8.2.4796: file left behind after running cursorline testszeertzjq2022-04-21
| | | | | | | | | | | | | | | | | | Problem: File left behind after running cursorline tests. Solution: Uncomment the line that deletes the file. https://github.com/vim/vim/commit/da1050cd6fbb67cfde5b4a149d8d9db80bb4351c
| * | vim-patch:8.2.4795: 'cursorbind' scrolling depends on whether 'cursorline' ↵zeertzjq2022-04-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | is set Problem: 'cursorbind' scrolling depends on whether 'cursorline' is set. Solution: Always call validate_cursor(). (Christian Brabandt, closes vim/vim#10230, closes vim/vim#10014) https://github.com/vim/vim/commit/2c645e8b00641f504072f35e061b7392ed41f491
* | | Merge pull request #18187 from zeertzjq/vim-8.2.4724zeertzjq2022-04-21
|\ \ \ | |/ / |/| | vim-patch:8.2.4724: current instance of last search pattern not easily spotted
| * | vim-patch:8.2.4724: current instance of last search pattern not easily spottedzeertzjq2022-04-21
|/ / | | | | | | | | | | | | | | | | Problem: Current instance of last search pattern not easily spotted. Solution: Add CurSearch highlighting. (closes vim/vim#10133) https://github.com/vim/vim/commit/a43993897aa372159f682df37562f159994dc85c This fixes CurSearch highlight for multiline match. Omit screen redrawing code because Nvim redraws CurSearch differently.
* | Merge pull request #18185 from clason/vim-8.2.4781Christian Clason2022-04-20
|\ \ | | | | | | vim-patch:8.2.{4781,4793}: maxima files are not recognized
| * | vim-patch:8.2.4793: recognizing Maxima filetype even though it might be anotherChristian Clason2022-04-20
| | | | | | | | | | | | | | | | | | Problem: Recognizing Maxima filetype even though it might be another. Solution: Remove *.mc and *.dem patterns from Maxima files https://github.com/vim/vim/commit/928a13135629fa8e73796760077b1b877918a080
| * | vim-patch:8.2.4781: Maxima files are not recognizedChristian Clason2022-04-20
| | | | | | | | | | | | | | | | | | Problem: Maxima files are not recognized. Solution: Add patterns to detect Maxima files. (Doron Behar, closes vim/vim#10211) https://github.com/vim/vim/commit/d0a20c9d111da75febb60ffee2e15f727ab6a5ad
* | | docs(filetype): proper example for did_load_filetypes (#18191)Christian Clason2022-04-20
| |/ |/|
* | docs(api): add example showing necessity to wrap callback function (#18179)Mathias Fußenegger2022-04-20
| | | | | | | | | | | | | | Some people ran into issues trying to use `callback = myluafun` because of the event data payload. Co-authored-by: Gregory Anders <8965202+gpanders@users.noreply.github.com>
* | fix(lsp): unify progress message handling (#18040)runiq2022-04-20
| | | | | | | | | | | | | | | | | | | | | | The LSP progress handler would put non-progress messages (such as from clangd or pyls; not part of the LSP spec) directly into `client.messages`, while `vim.lsp.util.get_progress_messages()` would try to fetch them from `client.messages.messages` instead (and come up empty everytime). This would result in these messages never being cleaned up by `get_progress_messages()`. This commit fixes that by treating those messages like show-once progress messages (by setting `done=true` immediately).
* | fix(diagnostic): use nvim_exec_autocmds to trigger DiagnosticChanged (#18188)Gregory Anders2022-04-20
| | | | | | | | | | Use nvim_exec_autocmds to issue the DiagnosticChanged autocommand, rather than nvim_buf_call, which has some side effects when drawing statuslines.