aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* fix(cid/351940): free compl_arg in create_user_commands()'s error path exitJames McCoy2022-05-20
|
* ci(coverity): annotate register_cfunc as leaking memoryJames McCoy2022-05-20
| | | | | | | | | | register_cfunc allocates a ufunc_T, but doesn't store the pointer anywhere before returning. The uf_name member variable is stored in a hashtable and used to lookup the ufunc_T later, but that's too much for Coverity to track. Adding the annotation ensures that any new callers to register_cfunc don't pop up as new "leaks" in the Coverity scans.
* ci(coverity): model our allocation functionsJames McCoy2022-05-20
| | | | | | | | Coverity was reporting false positives, particularly around for non-NUL terminated strings around uses of xmemdupz(). The updated model ensures Coverity understands xmemdupz allocates an extra byte and sets it to NUL as well as the main details of our other allocation related wrappers.
* vim-patch:8.2.4980: when 'shortmess' contains 'A' loading session may still ↵zeertzjq2022-05-20
| | | | | | | | | | | warn (#18636) Problem: When 'shortmess' contains 'A' loading a session may still warn for an existing swap file. (Melker Österberg) Solution: Keep the 'A' flag to 'shortmess' in the session file. (closes vim/vim#10443) https://github.com/vim/vim/commit/aaadb5b6f76ea03e5eb460121f3dbf46ad04ce50 Use readfile() with "B" flag in test as readblob() needs patch 8.2.2343.
* Merge pull request #18629 from famiu/fix/ui/winbarbfredl2022-05-19
|\ | | | | fix(ui): make `winbar` properly equalize window heights for local value
| * fix(ui): make `winbar` properly equalize window heights for local valueFamiu Haque2022-05-19
| | | | | | | | | | Fixes `'winbar'` not properly equalizing window heights for splits when the global value is empty and a window-local value is set instead.
* | Merge pull request #18638 from zeertzjq/fix-winbar-mousezeertzjq2022-05-20
|\ \ | | | | | | Fix mouse drag position with winbar
| * | fix(mouse): fix mouse drag position with winbar or border in multigridzeertzjq2022-05-19
| | |
| * | fix(mouse): fix mouse drag position with winbarzeertzjq2022-05-19
|/ /
* | Merge pull request #18502 from drybalka/fix-languagetree-contains-descriptionChristian Clason2022-05-19
|\ \ | | | | | | treesitter: small improvements of languagetree.lua
| * | refactor: simple logic in tree_contains()Denys2022-05-18
| | |
| * | docs: correct description of LanguageTree:contains()Denys2022-05-18
| | |
* | | test(mksession_spec): only sleep on Windows (#18637)zeertzjq2022-05-19
| | |
* | | vim-patch:8.2.4979: accessing freed memory when line is flushed (#18634)zeertzjq2022-05-19
| | | | | | | | | | | | | | | Problem: Accessing freed memory when line is flushed. Solution: Make a copy of the pattern to search for. https://github.com/vim/vim/commit/28d032cc688ccfda18c5bbcab8b50aba6e18cde5
* | | Merge pull request #18630 from dundargoc/refactor/remove-remapGregory Anders2022-05-18
|\ \ \
| * | | refactor!: remove 'terse' optionDundar Goc2022-05-19
| | | | | | | | | | | | | | | | | | | | Having two methods of setting the same option is redundant and can be potentially confusing. Recommend adding 's' to 'shortmess' instead.
| * | | refactor!: remove 'remap' optionDundar Goc2022-05-19
| | | | | | | | | | | | | | | | | | | | An option that should always be kept on except for when working with old Vi scripts is of little use to us.
* | | | fix(termopen): avoid ambiguity in URI when CWD is root dir (#16988)zeertzjq2022-05-19
| | | |
* | | | Merge pull request #18620 from bfredl/multibarbfredl2022-05-18
|\ \ \ \ | | | | | | | | | | fix(ui): make winbar work with floats and multigrid
| * | | | refactor(events): remove unnecessary fudging of updating_screenbfredl2022-05-18
| | | | | | | | | | | | | | | | | | | | | | | | | This was not necessary after the introduction of `resize_events`, after which ui resizes are not `fast_events` anymore.
| * | | | fix(ui): make winbar work with floats and multigridbfredl2022-05-18
| | | | |
| * | | | refactor: move more grid functions to grid.c. Clean up some variablesbfredl2022-05-18
| | | | |
| * | | | refactor: grid->rows and grid->colsbfredl2022-05-18
| | | | |
* | | | | feat(lsp): option to reuse_win for jump actions (#18577)Lewis Russell2022-05-18
| |/ / / |/| | |
* | | | Merge pull request #18507 from gpanders/au-lsp-attachedGregory Anders2022-05-18
|\ \ \ \
| * | | | feat(lsp): add filter to vim.lsp.get_active_clients()Gregory Anders2022-05-18
| | | | | | | | | | | | | | | | | | | | | | | | | Allow get_active_clients() to filter on client name, id, or buffer. This (soft) deprecates lsp.buf_get_clients().
| * | | | feat(lsp): add LspAttach and LspDetach autocommandsGregory Anders2022-05-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current approach of using `on_attach` callbacks for configuring buffers for LSP is suboptimal: 1. It does not use the standard Nvim interface for driving and hooking into events (i.e. autocommands) 2. There is no way for "third parties" (e.g. plugins) to hook into the event. This means that *all* buffer configuration must go into the user-supplied on_attach callback. This also makes it impossible for these configurations to be modular, since it all must happen in the same place. 3. There is currently no way to do something when a client detaches from a buffer (there is no `on_detach` callback). The solution is to use the traditional method of event handling in Nvim: autocommands. When a LSP client is attached to a buffer, fire a `LspAttach`. Likewise, when a client detaches from a buffer fire a `LspDetach` event. This enables plugins to easily add LSP-specific configuration to buffers as well as enabling users to make their own configurations more modular (e.g. by creating multiple LspAttach autocommands that each do something unique).
* | | | | Merge pull request #18624 from famiu/feat/ui/winbarbfredl2022-05-18
|\ \ \ \ \ | |/ / / / |/| | | / | | |_|/ | |/| | fix(ui): set correct position on mouse click when 'winbar' is enabled
| * | | fix(ui): set correct position on mouse click when 'winbar' is enabledFamiu Haque2022-05-18
| |/ /
* / / feat(api): enable nvim_exec_autocmds to pass arbitrary data (#18613)Gregory Anders2022-05-18
|/ / | | | | | | Add a "data" key to nvim_exec_autocmds that passes arbitrary data (API objects) to autocommand callbacks.
* | Merge pull request #18562 from famiu/feat/ui/winbarbfredl2022-05-18
|\ \ | | | | | | feat(ui): add `'winbar'`
| * | feat(ui): add `'winbar'`Famiu Haque2022-05-18
| | | | | | | | | | | | | | | | | | | | | Adds support for a bar at the top of each window, enabled through the `'winbar'` option. Co-authored-by: Björn Linse <bjorn.linse@gmail.com>
* | | build(deps): bump libuv to HEAD - 730e07e2f (#18606)Christian Clason2022-05-18
| | |
* | | test: fix mksession terminal CWD test again (#18615)zeertzjq2022-05-18
| | |
* | | test: unskip tests on Windows (#18600)zeertzjq2022-05-18
| | | | | | | | | | | | | | | | | | Remove the command('qall!') from mksession_spec.lua because it prevents helpers.rmdir() from retrying. Allow extra trailing spaces when matching terminal lines.
* | | Merge #18605 PVS fixesJustin M. Keyes2022-05-18
|\ \ \
| * | | fix(PVS/V1044): suppress warningDundar Goc2022-05-17
| | | |
| * | | fix(PVS/V568): correct placement of ignore directiveDundar Goc2022-05-17
| | | |
| * | | fix(PVS/V547): "expression is always false"Dundar Goc2022-05-17
| | | | | | | | | | | | | | | | | | | | Suppress warning in loop.c, the expression can be true if EXITFREE isn't defined.
| * | | fix(PVS/V1028): prevent potential overflowDundar Goc2022-05-17
| | | |
* | | | vim-patch:8.2.4975: recursive command line loop may cause a crash (#18614)zeertzjq2022-05-18
|/ / / | | | | | | | | | | | | | | | | | | Problem: Recursive command line loop may cause a crash. Solution: Limit recursion of getcmdline(). https://github.com/vim/vim/commit/51f0bfb88a3554ca2dde777d78a59880d1ee37a8 Cherry-pick e_command_too_recursive from patch 8.2.3957.
* | | fix(health): handle non-existent log file #18610Noval Maulana2022-05-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: vim.lsp: require("vim.lsp.health").check() ======================================================================== - ERROR: Failed to run healthcheck for "vim.lsp" plugin. Exception: function health#check, line 20 Vim(eval):E5108: Error executing lua ...m/HEAD-6613f58/share/nvim/runtime/lua/vim/lsp/health.lua:20: attempt to index a nil value stack traceback: ...m/HEAD-6613f58/share/nvim/runtime/lua/vim/lsp/health.lua:20: in function 'check' [string "luaeval()"]:1: in main chunk Solution: Check for nil. fix #18602
* | | refactor(runtime): convert more dist#ft functions to lua (#18430)Jonas Strittmatter2022-05-17
| | |
* | | Merge pull request #18554 from kevinhwang91/perf-timerstartbfredl2022-05-17
|\ \ \ | | | | | | | | perf(_editor): no need to stop inside vim.defer_fn
| * | | perf(_editor): no need to stop inside vim.defer_fnkevinhwang912022-05-13
| | | | | | | | | | | | | | | | | | | | | | | | uv_run: 1. remove timer handle from heap 2. will start again if repeat is not 0
* | | | fix(terminal): do not trim whitespace that is actually in the terminal (#16423)zeertzjq2022-05-17
| | | |
* | | | fix(health): correct shada file path #18603zeertzjq2022-05-17
| | | |
* | | | feat(lintcommit): remove "chore", add "dist" #18594dundargoc2022-05-17
| | | | | | | | | | | | "chore" is never necessary, choose "fix" or "feat" if nothing else applies.
* | | | docs(api): update v:errmsg behavior #18593Famiu Haque2022-05-17
| | | |
* | | | Merge pull request #18598 from zeertzjq/vim-8.2.4968zeertzjq2022-05-17
|\ \ \ \ | | | | | | | | | | vim-patch:8.2.{4121,4968,4969}: invalid memory access