aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* fix(tui): end streamed paste correctly when key buffer is emptyzeertzjq2021-12-10
|
* Merge pull request #16597 from bfredl/nomisc1Björn Linse2021-12-10
|\ | | | | refactor: move out some long-hanging fruit from misc1.c
| * refactor(misc1): move preserve_exit() to related functions in main.cBjörn Linse2021-12-09
| |
| * refactor(misc1): move out misc functions which obviously belong elsewhereBjörn Linse2021-12-09
| | | | | | | | Also make some function names more descriptive/regular.
| * refactor(misc1): move out autocmd related functionsBjörn Linse2021-12-09
| |
| * refactor(misc1): move line_breakcheck family of functions to os/input.cBjörn Linse2021-12-09
| |
* | Merge pull request #16541 from jamessan/vim-8.2.3664James McCoy2021-12-09
|\ \ | | | | | | vim-patch:8.2.3664,8.2.3743,8.2.3747,8.2.3748,8.2.3757
| * | vim-patch:8.2.3757: an overlong highlight group name is silently truncatedJames McCoy2021-12-08
| | | | | | | | | | | | | | | | | | Problem: An overlong highlight group name is silently truncated. Solution: Give an error if the name is too long. (closes vim/vim#9289) https://github.com/vim/vim/commit/f7f7aaf8aaad34a38d3f159e031c5bcf3394f8f1
| * | test(fold): add test for CursorLineFoldGregory Anders2021-12-08
| | |
| * | test(sign): add test for culhl optionGregory Anders2021-12-08
| | |
| * | vim-patch:partial 6304be625ce4James McCoy2021-12-08
| | | | | | | | | | | | | | | | | | | | | Update runtime files. https://github.com/vim/vim/commit/6304be625ce44dcfedc6735164d0b853578581c8 Remaining changes left out of 03d250eb4504d5168a754d0f3b7e9992337d60b4
| * | vim-patch:8.2.3748: giving an error for an empty sign argument breaks a pluginJames McCoy2021-12-08
| | | | | | | | | | | | | | | | | | Problem: Giving an error for an empty sign argument breaks a plugin. Solution: Do not give an error. https://github.com/vim/vim/commit/e5710a02cb78c2a0a868ea55740835c78ddecbb4
| * | vim-patch:8.2.3747: cannot remove highlight from an existing signJames McCoy2021-12-08
| | | | | | | | | | | | | | | | | | Problem: Cannot remove highlight from an existing sign. (James McCoy) Solution: Only reject empty argument for a new sign. https://github.com/vim/vim/commit/0bac5fc5e125b7aa0f3b596c9b7f4381279e6688
| * | vim-patch:8.2.3743: ":sign" can add a highlight group without a nameJames McCoy2021-12-08
| | | | | | | | | | | | | | | | | | Problem: ":sign" can add a highlight group without a name. Solution: Give an error if the group name is missing. (closes vim/vim#9280) https://github.com/vim/vim/commit/5e18ccc60bdddc4aa39ab039f1a7c918f29e67ce
| * | vim-patch:8.2.3664: cannot adjust sign highlighting for 'cursorline'James McCoy2021-12-08
| | | | | | | | | | | | | | | | | | | | | Problem: Cannot adjust sign highlighting for 'cursorline'. Solution: Add CursorLineSign and CursorLineFold highlight groups. (Gregory Anders, closes vim/vim#9201) https://github.com/vim/vim/commit/e413ea04b716effb28eb49dbc98ad3f9f761545a
* | | Merge pull request #16524 from dundargoc/ci/optimize-brewJames McCoy2021-12-09
|\ \ \ | | | | | | | | ci: remove "brew upgrade" from macos jobs
| * | | ci: remove "brew upgrade" from macos jobsDundar Göc2021-12-04
| | | | | | | | | | | | | | | | | | | | | | | | Packages are automatically upgraded on install. This will avoid upgrading unrelated packages, cutting the macos job time to about a half.
* | | | Merge pull request #16414 from zeertzjq/terminal-no-invalid-rowsJames McCoy2021-12-09
|\ \ \ \ | | | | | | | | | | fix(terminal): return early if there are no invalid rows
| * | | | fix(terminal): return early if there are no invalid rowszeertzjq2021-12-08
| | | | | | | | | | | | | | | | | | | | Prevent on_lines emitting out-of-bounds line indexes.
* | | | | Merge pull request #16547 from pekdon/sunosJames McCoy2021-12-09
|\ \ \ \ \ | | | | | | | | | | | | Portability improvements, first steps at getting neovim on x86_64 SunOS
| * | | | | fix: don't use cfsetspeed, use i and o variantsClaes Nästén2021-12-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cfsetspeed is not available on SunOS, use cfsetispeed and cfsetospeed instead.
| * | | | | fix: don't include pty.h on SunOSClaes Nästén2021-12-07
| | | | | |
| * | | | | fix: add STRNLEN compatability macroClaes Nästén2021-12-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Older SunOS systems come without strnlen, add STRNLEN macro in line with the other str* compat macros.
| * | | | | fix: define NAME_MAX from _XOPEN_NAME_MAXClaes Nästén2021-12-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On SunOS NAME_MAX is not defined, _XOPEN_NAME_MAX is so fall back to defining NAME_MAX from _XOPEN_NAME_MAX.
| * | | | | fix: skip libutil on SunOSClaes Nästén2021-12-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libutil is not available on Solaris variants, even on Solaris 11 where forkpty is available.
* | | | | | Merge pull request #16564 from glacambre/improve_test_harness_perfJames McCoy2021-12-09
|\ \ \ \ \ \ | | | | | | | | | | | | | | test(helpers): optimize read_file_list
| * | | | | | test(helpers): optimize read_file_listglacambre2021-12-08
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Read_file_list is used to read back data from the nvim log file as the testsuite executes. However, the nvim log file can get really big (each full run of the testsuite appends roughly 150MB of data to this file). Reading each line of this file can thus be extremely slow, and so are the repeated table.insert/table.removes that are done for each line. A solution to this issue is tto only read the end of the file. This results in a sizeable improvement in testsuite run times in some cases, e.g. on my computer: Without this commit: real 20m0.431s user 17m11.163s sys 1m59.422s With this commit: real 4m25.356s user 1m41.673s sys 1m31.253s
* | | | | | vim-patch:8.2.3769: zig files are not recognized (#16598)Christian Clason2021-12-09
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | Problem: Zig files are not recognized. Solution: Add *.zig. (Gregory Anders, closes vim/vim#9313) https://github.com/vim/vim/commit/4c8c634365bc6d4d462635aed5e0f7ad2262d590
* | | | | Merge pull request #16582 from dundargoc/docs/remove-redundant-help-filesJames McCoy2021-12-09
|\ \ \ \ \ | | | | | | | | | | | | docs: remove redundant help files
| * | | | | docs: remove redundant help filesDundar Göc2021-12-08
| | | | | |
* | | | | | fix(diagnostic): set effective buffer number in autocmd (again) (#16589)Gregory Anders2021-12-08
| |_|_|_|/ |/| | | | | | | | | Follow up to #16474.
* | | | | Merge pull request #16418 from zeertzjq/terminal-coladvanceJames McCoy2021-12-08
|\ \ \ \ \ | | | | | | | | | | | | fix(terminal): use coladvance() to calculate buffer cursor position
| * | | | | fix(terminal): use coladvance() to calculate buffer cursor positionzeertzjq2021-12-08
| | |/ / / | |/| | |
* | | | | refactor(diagnostic): remove bufnr parameter from open_float (#16579)Gregory Anders2021-12-08
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The overwhelming majority of use cases for `open_float` are to view diagnostics from the current buffer in a floating window. Thus, most use cases will just `0` or `nil` as the first argument, which makes the argument effectively useless and wasteful. In the cause of optimizing for the primary use case, make the `bufnr` parameter an optional parameter in the options table. This still allows using an alternative buffer for those that wish to do so, but makes the "primary" use case much easier. The old signature is preserved for backward compatibility, though it can likely be fully deprecated at some point.
* | | | docs(lsp): fix resolve_capabilities docstring (#16577)Gregory Anders2021-12-08
| | | |
* | | | docs: update missing help sections from main help page (#16573)dundargoc2021-12-08
| | | | | | | | | | | | Also replace non-existent help section remote.txt to remote_plugins.txt
* | | | fix: check for interrupt in nvim_echo, write_msg and nlua_print (#16537)ii142021-12-08
| | | | | | | | | | | | | | | | | | | | Fixes `q` in more pager, where `:highlight` can be quit out of with a single `q` keystroke, while in `:lua print(vim.inspect(vim))` it just scrolls down a page.
* | | | ci: install doxygen with conda instead of apt (#16517)dundargoc2021-12-08
| | | | | | | | | | | | | | | | | | | | | | | | This provides a newer version of Doxygen (1.9.0 or later) that fixes a bug in the documentation generator. Closes #16498
* | | | refactor(diagnostic): add warning to deprecated functions (#16536)dundargoc2021-12-08
| | | |
* | | | fix(api): allow nvim_buf_set_extmark to accept end_row key (#16548)Gregory Anders2021-12-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | nvim_buf_get_extmark uses "end_row" rather than "end_line" in its 'details' dict, which means callers must modify the key names if they want to re-use the information. Change the parameter name in nvim_buf_set_extmark to "end_row" and use "end_line" as an alias to make this more consistent.
* | | | Merge pull request #16421 from seandewar/vim-8.1.0035Jan Edmund Lazo2021-12-07
|\ \ \ \ | |/ / / |/| | | vim-patch:8.1.{35,42,64},8.2.{1781,1783,1976,2014,3671}
| * | | vim-patch:8.2.3671: restarting Insert mode in prompt buffer too oftenSean Dewar2021-12-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Restarting Insert mode in prompt buffer too often when a callback switches windows and comes back. (Sean Dewar) Solution: Do not set "restart_edit" when already in Insert mode. https://github.com/vim/vim/commit/34c20ff85b87be587ea5d0398812441b502ee6a5 As Test_prompt_switch_windows is skipped, implement it in prompt_buffer_spec. Replace the 50ms term_wait calls with poke_eventloop (test seems to work anyway without them, so maybe they're not required?) The new test does include a duplicate screen test that may generate a "screen test succeeded immediately" warning, but this is done to match the Vim test.
| * | | test(prompt_buffer_spec): include changes from v8.1.1984Sean Dewar2021-12-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I already ported v8.1.1984 previously, but hadn't updated prompt_buffer_spec to match test_prompt_buffer (which we have but due to Vim features such as term_sendkeys it's mostly skipped). Required for v8.2.3671.
| * | | vim-patch:8.2.2014: using CTRL-O in a prompt buffer moves cursor to startSean Dewar2021-12-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Using CTRL-O in a prompt buffer moves cursor to start of the line. Solution: Do not move the cursor when restarting edit. (closes vim/vim#7330) https://github.com/vim/vim/commit/ee8b787bcd15f63a938243770065e704c9b5c85f Test_prompt_editing is skipped, so edit the Lua test in prompt_buffer_spec.
| * | | vim-patch:8.2.1976: cannot backspace in prompt buffer after using cursor-leftSean Dewar2021-12-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot backspace in prompt buffer after using cursor-left. (Maxim Kim) Solution: Ignore "arrow_used" in a prompt buffer. (closes vim/vim#7281) https://github.com/vim/vim/commit/6f6244855fbce5aaa718cd5001a29aac3c5c15d6 cmdchar_todo wasn't adapted properly for Nvim's state system, which caused it to be a dead store and such was removed in #11900. Re-introduce cmdchar_todo properly.
| * | | vim-patch:8.2.1783: try-catch test failsSean Dewar2021-12-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Try-catch test fails. Solution: Don't call win_enter(), only call enterering_window(). https://github.com/vim/vim/commit/bdf931c25b4fe78877106ca529baee7899d0f6a4 v8.2.1781 caused Test_reload_in_try_catch() from v8.2.0004 to fail in Vim, but it has not been ported yet.
| * | | vim-patch:8.2.1781: writing to prompt buffer interferes with insert modeSean Dewar2021-12-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Writing to prompt buffer interferes with insert mode. Solution: Use win_enter() instead of just setting "curwin". (Ben Jackson, closes vim/vim#7035) https://github.com/vim/vim/commit/4537bcc88956f86267c25edf8008e0dbde598652 Vim test will be skipped, so add a Lua test. The problem boils down to the use of aucmd_restbuf in a callback, so just test that (via nvim_buf_set_lines).
| * | | vim-patch:8.1.0064: typing CTRL-W in a prompt buffer shows mode "-- --"Sean Dewar2021-12-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Typing CTRL-W in a prompt buffer shows mode "-- --". Solution: Set restart_edit to 'A' and check for it. https://github.com/vim/vim/commit/942b4541a2d8e8df8369ab70e112dbbbe0c7c0aa Nvim already checked for 'i' in showmode(), so this bug was fixed with <C-W> (though this patch now changes <C-W> to use 'A'). However, the missing changes I ported for v8.1.0036 use 'A' when a callback leaves the window in insert mode and edit gets restarted, so this bug was possible there. Modify showmode() restart_edit condition to match v8.2.1978: https://github.com/vim/vim/commit/957cf67d50516ba98716f59c9e1cb6412ec1535d
| * | | vim-patch:8.1.0042: if omni completion opens a window Insert mode is stoppedSean Dewar2021-12-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: If omni completion opens a window Insert mode is stopped. (Hirohito Higashi) Solution: Only set stop_insert_mode in a prompt buffer window. https://github.com/vim/vim/commit/f98b845dd185dfadfa7a622a42452bfa6809d4e0 popupmenu_spec.lua fails without this.
| * | | fix(prompt): add missing changes from v8.1.0036Sean Dewar2021-12-07
| | | | | | | | | | | | | | | | v8.1.0036 is already marked as ported, but missed out changes that depended on v8.1.0035.