aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* vim-patch:8.1.1210: support for user commands is spread out (#19653)zeertzjq2022-08-06
| | | | | | | Problem: Support for user commands is spread out. No good reason to make user commands optional. Solution: Move user command support to usercmd.c. Always enable the user_commands feature. https://github.com/vim/vim/commit/ac9fb18020d7e8bf16d02d45fbb02cf47328aaf7
* vim-patch:8.1.0942: options window still checks for the multi_byte feature ↵zeertzjq2022-08-06
| | | | | | | (#19652) Problem: Options window still checks for the multi_byte feature. Solution: Remove the unnecessary check. (Dominique Pelle, closes vim/vim#3990) https://github.com/vim/vim/commit/76cbe811dafea0609e87ee4b9d025e2387e20fac
* fix(api): fix nvim_buf_set_text heap-use-after-free (#19644)zeertzjq2022-08-06
| | | | The line returned but ml_get_buf() may be freed by another call to ml_get_buf(), so it is necessary to make a copy.
* fix(lsp): avoid ^M character in hover window on Windows (#19640)Cai.MY2022-08-05
|
* test(old): clear builtin menus before running tests (#19647)zeertzjq2022-08-05
| | | Otherwise Test_menu_expand() fails when run alone.
* vim-patch:9.0.0141: "delmenu" does not remove autocmmands (#19646)Christian Clason2022-08-05
| | | | | | | Problem: "delmenu" does not remove autocmmands. Running menu test function alone fails. Solution: Delete autocommands Make sure there is at least one menu. (closes vim/vim#10848) https://github.com/vim/vim/commit/206fce307b265f7f6c6290b623a80c1d846dd131
* docs: improve example in incremental preview section (#19613)Jonas Strittmatter2022-08-05
| | | | | | - Separate preview and callback functions to make the example easier to understand - Use false instead of 0 for boolean arguments in API function calls - Remove explicit nil checks for consistency - Format with stylua
* test(let_spec): increase expect_exit() timeoutzeertzjq2022-08-05
| | | Test ":unlet self-referencing node in a List graph #6070" feeds many characters into typeahead, so a timeout of only 100 milliseconds sometimes fails. Change that timeout to 1000 milliseconds.
* Merge pull request #19642 from zeertzjq/vim-8.2.0413zeertzjq2022-08-05
|\ | | | | vim-patch:8.2.{0413,0478},9.0.0009: menu patches
| * vim-patch:9.0.0009: going past the end of a menu item with only modifierzeertzjq2022-08-05
| | | | | | | | | | | | Problem: Going past the end of a menu item with only modifier. Solution: Check for NUL. https://github.com/vim/vim/commit/083692d598139228e101b8c521aaef7bcf256e9a
| * vim-patch:8.2.0478: new buffers are not added to the Buffers menuzeertzjq2022-08-05
| | | | | | | | | | | | Problem: New buffers are not added to the Buffers menu. Solution: Turn number into string. (Yee Cheng Chin, closes vim/vim#5864) https://github.com/vim/vim/commit/5908fdf72fa1995735e38c46f254ddde81a87c1f
| * vim-patch:8.2.0413: buffer menu does not handle special buffers properlyzeertzjq2022-08-05
|/ | | | | | | | | Problem: Buffer menu does not handle special buffers properly. Solution: Keep a dictionary with buffer names to reliably keep track of entries. Also trigger BufFilePre and BufFilePost for command-line and terminal buffers when the name changes. https://github.com/vim/vim/commit/5e94a29ebbde10dd973d58f1adba9a2fc83877d1
* Merge pull request #19638 from zeertzjq/vim-8.2.0385zeertzjq2022-08-05
|\ | | | | vim-patch:8.2.{0385,0392,3459}: menu_info()
| * vim-patch:8.2.3459: Vim9: need more tests for empty string argumentszeertzjq2022-08-05
| | | | | | | | | | | | | | Problem: Vim9: need more tests for empty string arguments. Solution: Add more tests. Also use empty argument with menu_info() to get the top-level menu names. (Yegappan Lakshmanan, closes vim/vim#8925) https://github.com/vim/vim/commit/51491adfa86fd66a857cd7ec50d0b57dbdf3da59
| * vim-patch:8.2.0392: Coverity warns for using array index out of rangezeertzjq2022-08-05
| | | | | | | | | | | | Problem: Coverity warns for using array index out of range. Solution: Add extra "if" to avoid warning. https://github.com/vim/vim/commit/56cb3378727783da2d246b9c5091784821666cfa
| * vim-patch:8.2.0385: menu functionality insufficiently testedzeertzjq2022-08-05
| | | | | | | | | | | | | | | | | | | | | | Problem: Menu functionality insufficiently tested. Solution: Add tests. Add menu_info(). (Yegappan Lakshmanan, closes vim/vim#5760) https://github.com/vim/vim/commit/0eabd4dc8ff50658f0ea0e92c7918a42242f6b80 Omit feedkeys() change: even if "L" flag is implemented it will likely use input_enqueue(), which already checks for interrupts. Omit Test_mouse_popup_menu(): already tested in Lua.
| * fix(menu): make :menu still print header when there are no menuszeertzjq2022-08-05
|/
* vim-patch:partial:8.2.0897: list of functions in patched version is outdated ↵zeertzjq2022-08-04
| | | | | | | (#19637) Problem: List of functions in patched version is outdated. Solution: Update the function lists only. https://github.com/vim/vim/commit/ebacddbc16b2d76bf5dad636d7ee5c529f0e8753
* fix(lsp): prevent unexpected position jumps (#19370)rhcher2022-08-03
|
* Merge #19626 build: cleanup old cmake filesJustin M. Keyes2022-08-03
|\
| * build: remove InstallClintErrors.cmakeDundar Goc2022-08-03
| | | | | | | | | | Replace its functionality by copying the entire directory where the reports are instead.
| * build: remove unused file i386-linux-gnu.toolchain.cmakeDundar Goc2022-08-03
| | | | | | | | It was used in .travis.yml which has been removed.
| * build: replace deprecated cmake features with their modern alternativesDundar Goc2022-08-03
| | | | | | | | | | | | | | - Use DIRECTORY instead of PATH in get_filename_component - Use COMPILE_OPTIONS instead of COMPILE_FLAGS. COMPILE_FLAGS is treated as a single string while COMPILE_OPTIONS is a list, meaning that cmake will take care of any escaping and quoting automatically.
* | fix(completion): remove wrong FUNC_ATTR_NONNULL_ALL (#19627)zeertzjq2022-08-03
| |
* | feat(lua): print source locations of lua callbacks (#19597)ii142022-08-03
| | | | | | Co-authored-by: ii14 <ii14@users.noreply.github.com>
* | fix(ui): set redraw_cmdline when setting window height (#19630)zeertzjq2022-08-03
| |
* | Merge pull request #19540 from lewis6991/cmd_refactorLewis Russell2022-08-03
|\ \
| * | refactor(cmd): unify execute_cmd with do_one_cmdLewis Russell2022-08-02
| | |
| * | refactor(cmd): hoist out some code into functionsLewis Russell2022-08-02
| | |
| * | refactor(cmd): format do_one_cmd()Lewis Russell2022-08-02
| | | | | | | | | | | | | | | - Comment style - Minimise scope of locals
* | | docs: fix typos (#19588)dundargoc2022-08-03
| |/ |/| | | | | Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: notomo <notomo.motono@gmail.com>
* | refactor: quickfix.c (#19603)Lewis Russell2022-08-02
| | | | | | | | | | Simplify variable declarations Co-authored-by: zeertzjq <zeertzjq@outlook.com>
* | Merge pull request #19584 from bfredl/terminal_c_BSL_c_Obfredl2022-08-02
|\ \ | | | | | | implement <c-\><c-o> key for terminal mode
| * | feat(terminal): implement <c-\><c-o> for terminal modebfredl2022-08-02
| |/ | | | | | | this works similar to <c-o> or <c-\><c-o> in insert mode
* | fix(tabpage): check if ROWS_AVAIL changed for resize (#19620)zeertzjq2022-08-02
| | | | | | | | | | | | | | | | | | N/A patches for version.c: vim-patch:9.0.0135: comment about tabpage line above the wrong code Problem: Comment about tabpage line above the wrong code. Solution: Move the comment. (closes vim/vim#10836) https://github.com/vim/vim/commit/0b0ccbbfb014e1c9682b86a7a41ff2837b0b8047
* | build: add formatting targets for c and lua files (#19488)dundargoc2022-08-02
| | | | | | | | | | | | | | | | | | | | | | | | The targets will only format files that have been changed in current branch compared to the master branch. This includes unstaged, staged and committed files. Add following make and cmake targets: formatc - format changed c files formatlua - format changed lua files format - run formatc and formatlua Remove scripts/uncrustify.sh as this deprecates it.
* | refactor: rename function prefix mb to the more accurate utf_cp (#19590)dundargoc2022-08-02
|/ | | | | The "cp" stands for codepoint. Closes https://github.com/neovim/neovim/issues/7401
* test: improve mapping tests and docs (#19619)zeertzjq2022-08-02
|
* Merge pull request #19617 from zeertzjq/vim-8.2.4956zeertzjq2022-08-02
|\ | | | | vim-patch:8.2.{4899,4956,5013}
| * vim-patch:8.2.5013: after text formatting cursor may be in an invalid positionzeertzjq2022-08-02
| | | | | | | | | | | | Problem: After text formatting the cursor may be in an invalid position. Solution: Correct the cursor position after formatting. https://github.com/vim/vim/commit/78d52883e10d71f23ab72a3d8b9733b00da8c9ad
| * vim-patch:8.2.4956: reading past end of line with "gf" in Visual block modezeertzjq2022-08-02
| | | | | | | | | | | | | | | | Problem: Reading past end of line with "gf" in Visual block mode. Solution: Do not include the NUL in the length. https://github.com/vim/vim/commit/395bd1f6d3edc9f7edb5d1f2d7deaf5a9e3ab93c Omit trailing space: removed in patch 9.0.0126.
| * vim-patch:8.2.4899: with latin1 encoding CTRL-W might go before the cmdlinezeertzjq2022-08-02
|/ | | | | | | Problem: With latin1 encoding CTRL-W might go before the start of the command line. Solution: Check already being at the start of the command line. https://github.com/vim/vim/commit/ef02f16609ff0a26ffc6e20263523424980898fe
* vim-patch:9.0.0126 (#19612)jdrouhard2022-08-02
| | | | | | | | | vim-patch:9.0.0126: expanding file names fails in dir with more than 255 entries Problem: Expanding file names fails in directory with more than 255 entries. Solution: Use an int instead of char_u to count. (John Drouhard, closes vim/vim#10818) https://github.com/vim/vim/commit/95fca12b0e8a351ce4416417323db24c63eb940a
* fix(lsp): send didOpen if name changes on write (#19583)Mathias Fußenegger2022-08-01
| | | | | | | | | `:saveas newName` changes the name of an existing buffer. Due to the buffer re-use it skips the lsp attach phase and immediately sends a `didSave` notification to the server. Servers get confused about this, because they expect a `didOpen` notification first. Closes https://github.com/neovim/neovim/issues/18688
* vim-patch:05a8061eecd9 (#19610)Christian Clason2022-08-01
| | | | Update runtime files https://github.com/vim/vim/commit/05a8061eecd9969ee6cde008f54ded77462b649e
* feat(node): add pnpm support #19461Percy Ma2022-08-01
|
* Merge pull request #19602 from zeertzjq/vim-8.2.0807zeertzjq2022-08-01
|\ | | | | vim-patch:8.2.{0807,0809,0812,0815,0832,1773,2804,4831,5106},9.0.0127: first part of mapset()
| * feat(mapset): support restoring "replace_keycodes" and "desc"zeertzjq2022-08-01
| |
| * test: fix api/keymap_spec.lua testszeertzjq2022-08-01
| |
| * vim-patch:8.2.5106: default cmdwin mappings are re-mappablezeertzjq2022-08-01
| | | | | | | | | | | | | | Problem: Default cmdwin mappings are re-mappable. Solution: Make the default mappings not re-mappable. (closes vim/vim#10580) Use symbols for the first do_map() argument. https://github.com/vim/vim/commit/44068e97dbd8fc8ebd93113e436a1e37a6bff52c