aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* | | | Merge pull request #15945 from bfredl/emptydeleteBjörn Linse2021-10-07
|\ \ \ \ | | | | | | | | | | fix(buffer_updates): handle :delete of the very last line in buffer
| * | | | fix(buffer_updates): handle :delete of the very last line in bufferBjörn Linse2021-10-07
|/ / / /
* | | | Merge pull request #15934 from kylo252/replacement-sizeBjörn Linse2021-10-07
|\ \ \ \ | | | | | | | | | | fix(lint): remove redundant ternary operator
| * | | | fix(lint): remove redundant ternary operatorkylo2522021-10-06
| | | | | | | | | | | | | | | | | | | | | | | | | The value of `new_len` will never be '0' since `replacement.size` is checked against that early on.
* | | | | Merge pull request #15941 from dundargoc/refactor/remove-redundant-castsBjörn Linse2021-10-07
|\ \ \ \ \ | | | | | | | | | | | | refactor: remove redundant casts
| * | | | | refactor: remove redundant castsDundar Göc2021-10-07
| | |/ / / | |/| | |
* | | | | feat(diagnostic): update jumplist on goto_next/prev (#15942)Sean Dewar2021-10-07
| | | | |
* | | | | Merge pull request #15932 from erw7/fix-nvim-buf-set-extmarkBjörn Linse2021-10-07
|\ \ \ \ \ | | | | | | | | | | | | fix(api): fix nvim_buf_set_extmark
| * | | | | fix(api): fix nvim_buf_set_extmarkerw72021-10-07
| | |_|_|/ | |/| | | | | | | | | | | | | Fix the problem of calling clear_virttext on undefined variables.
* | | | | Merge pull request #15316 from vigoux/ts-fix-capturesBjörn Linse2021-10-07
|\ \ \ \ \ | |_|/ / / |/| | | | fix(treesitter): run predicates more often in iter_matches
| * | | | fix(treesitter): run predicates more often in iter_matchesThomas Vigouroux2021-10-01
| | | | | | | | | | | | | | | | | | | | Superseedes #15126, and fixes the issue.
* | | | | fix: set cursorlineopt=number in terminal mode (#15493)Yorick Peterse2021-10-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When entering terminal mode, cursorlineopt is no longer entirely disabled. Instead, it's set to `number`. Doing so ensures that users using `set cursorline` combined with `set cursorlineopt=number` have consistent highlighting of the line numbers, instead of this being disabled when entering terminal mode. Co-authored-by: Gregory Anders <greg@gpanders.com> Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com>
* | | | | fix(extmarks): splice extmarks on nv_Undo #15920Tony Chen2021-10-06
| | | | |
* | | | | fix(PVS/V1048): "variable was assigned the same value" #15870dundargoc2021-10-06
| | | | |
* | | | | refactor: remove superfluous function-like macros #15918dundargoc2021-10-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove following macros: CONVERTED HMLL_ITER_BACK PACK_STRUCT IGNORE_BUF find_shada_parameter path_try_shorten_fname
* | | | | vim-patch:8.2.0017: OS/2 and MS-DOS are still mentioned #15928dundargoc2021-10-06
| |_|/ / |/| | | | | | | | | | | | | | | | | | | Problem: OS/2 and MS-DOS are still mentioned, even though support was removed long ago. Solution: Update documentation. (Yegappan Lakshmanan, closes vim/vim#5368) https://github.com/vim/vim/commit/6f345a1458df2db03fba7863492404e9dc8b817c
* | | | fix(tui): remove dead code #15929erw72021-10-06
| |/ / |/| | | | | | | | | | | Before #15889, we used our fork of libuv which supports Windows 7/8. After #15889, we use upstream libuv, which does not support Windows 7 and lacks mouse/altbuf support for Windows 8 console.
* | | fix(checkhealth): mitigate issues with duplicate healthchecks #15919Javier Lopez2021-10-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix(runtime/health): mitigate issues with duplicate healthchecks Previously if a healthcheck was found as Lua and Vim it was executed both times. This new implementations prefers Lua, therefore if two are found It only runs the Lua one, this way a plugin can mantain both implementations the Lua one with the method `check()` and the autoload function `#check()` (for none HEAD nvim versions). **Note: This will require plugins to use `check()` as the function name, since the autoload function that wraps the lua implementation won't be called** * docs(health): use spaces and don't overuse backtics followup to #15259
* | | vim-patch:8.2.0155: MinGW warnings; tests without +float #15908Jan Edmund Lazo2021-10-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Warnings from MinGW compiler. (John Marriott) Json test fails when building without +float feature. Solution: Init variables. Fix Json parsing. Skip a few tests that require the +float feature. https://github.com/vim/vim/commit/a5d5953d59730d9bf9c00a727c4aeb56f6ffc944 Omit vim9 changes. vim9 internal implementation is N/A, similar to the `vimscript-*` features. N/A patches for version.c: vim-patch:8.1.0737: compiler warning for uninitialized variable Problem: Compiler warning for uninitialized variable. Solution: Add initialization. (John Marriott) https://github.com/vim/vim/commit/e519dfd7139d504ada44031a986482ac4fb1229a vim-patch:8.1.1385: signed/unsigned compiler warning Problem: Signed/unsigned compiler warning. Solution: Use STRLEN() instead of strlen(). https://github.com/vim/vim/commit/71de720c2c117137185a6fc233b35aab37f0d4bc vim-patch:8.2.0165: Coverity warning for using NULL pointer Problem: Coverity warning for using NULL pointer. Solution: Add missing "else". https://github.com/vim/vim/commit/5b18c248d3fe4961076dbc59c960ef60c80650f0 vim-patch:8.2.0166: Coverity warning for using uninitialized variable Problem: Coverity warning for using uninitialized variable. Solution: Check for failure. https://github.com/vim/vim/commit/07da94b0f07beb15c7e26b78837def5a91e102dc vim-patch:8.2.0167: Coverity warning for ignoring return value Problem: Coverity warning for ignoring return value. Solution: Check the return value and jump if failed. https://github.com/vim/vim/commit/58ceca5cae75ed839b20a89c5fa9998f02552f58 "src/testdir/test_vim9*.vim" files are N/A because vim9 code is currently unsupported. vim-patch:8.2.0168: Coverity warning for assigning NULL to an option Problem: Coverity warning for assigning NULL to an option. Solution: Use empty string instead of NULL. https://github.com/vim/vim/commit/97a2af39cd3249c6cbe5a5c59bc24167632d39ad vim-patch:8.2.0169: Coverity warning for dead code Problem: Coverity warning for dead code. Solution: Check if inside try-finally. https://github.com/vim/vim/commit/8cbd6dfc0c9d84c5be8414dfdea3b28b72dfddb6 vim-patch:8.2.0170: Coverity warning for ignoring return value Problem: Coverity warning for ignoring return value. Solution: Check the return value and return if failed. https://github.com/vim/vim/commit/a6d536829a2c3151f3d0faa0ecdc7b8230fb11ec vim-patch:8.2.0172: Coverity warning for not restoring character Problem: Coverity warning for not restoring character. Solution: Restore the character also in case of failure. https://github.com/vim/vim/commit/4549ece47cc8d6487d8e64ae37361fea87e3ad39 vim-patch:8.2.0254: compiler warning for checking size_t to be negative Problem: Compiler warning for checking size_t to be negative. Solution: Only check for zero. (Zoltan Arpadffy) https://github.com/vim/vim/commit/ae8d2de3a9c0436a543c7d46071104af31ff6db7 vim-patch:8.2.0326: compiler warning for using uninitialized variable Problem: Compiler warning for using uninitialized variable. (Yegappan Lakshmanan) Solution: Do not jump to failed but return. https://github.com/vim/vim/commit/d5aec0ced17f8f60761128bff32e54ad2d1d57ef vim-patch:8.2.3387: compiler warning for non-static function Problem: Compiler warning for non-static function. Solution: Make the function static. (Dominique Pellé, closes vim/vim#8816) https://github.com/vim/vim/commit/de05ae71589f46c5d27642c33fe5eb21b22aaf5d
* | | docs: regenerate #15545github-actions[bot]2021-10-05
| | |
* | | fix(docs): add win_config.cJustin M. Keyes2021-10-05
| | |
* | | fix(docs): duplicate tag, wrong formattingJustin M. Keyes2021-10-05
| | | | | | | | | | | | | | | | | | | | | Fixes build error: cd /usr/home/build/neovim/build/runtime && /usr/local/bin/cmake -E remove doc/* && /usr/local/bin/cmake -E copy_directory /usr/home/build/neovim/runtime/doc doc && /usr/home/build/neovim/build/bin/nvim -u NONE -i NONE -e --headless -c helptags\ ++t\ doc -c quit Error detected while processing command line: E154: Duplicate tag "vim.register_keystroke_callback()" in file doc/lua.txt
* | | feat(api): named marks set, get, delete #15346Javier Lopez2021-10-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds the following API functions. - nvim_buf_set_mark(buf, name, line, col) * Set marks in a buffer. - nvim_buf_del_mark(buf, name) * Delete a mark that belongs to buffer. - nvim_del_mark(name) * Delete a global mark. - nvim_get_mark(name) * Get a global mark. Tests: - Adds test to all the new api functions, and adds more for the existing nvim_buf_get_mark. * Tests include failure cases. Documentation: - Adds documentation for all the new functions, and improves the existing fucntion docs.
* | | feat(lsp): improve json deserialization performance (#15854)Michael Lingelbach2021-10-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add optional second table argument to vim.json.decode which takes a table 'luanil' which can include the 'object' and/or 'array' keys. These options use luanil when converting NULL in json objects and arrays respectively. The default behavior matches the original lua-cjson. * Remove recursive_convert_NIL function from rpc.lua, use vim.json.decode with luanil = { object = true } instead. This removes a hotpath in the json deserialization pipeline by dropping keys with json NULL values throughout the deserialized table.
* | | build(deps)!: use libuv 1.42.0 upstream for WIN32 (#15889)Christian Clason2021-10-05
| | | | | | | | | | | | | | | | | | | | | | | | Switch libuv from https://github.com/neovim/libuv fork to upstream for WIN32. Upstream at 1.42.0 is now used for all platforms. BREAKING CHANGE: removes Windows 7 support BREAKING CHANGE: removes support for mouse and alternate buffers in TUI for Windows 8 and 8.1
* | | docs(contrib): recommend `nvim --clean` #15917Christian Clason2021-10-05
| | |
* | | fix(vim-patch): add missing nginx runtime files (#15916)Christian Clason2021-10-05
| | | | | | | | | Followup to incomplete runtime update https://github.com/neovim/neovim/pull/15911
* | | docs(intro.txt): change vimhelp.appspot.com to vimhelp.org (#15915)zeertzjq2021-10-05
| | | | | | | | | Ref https://github.com/vim/vim/commit/6c1e1570b1346de0d438fbb991bddab38c228290#diff-644ad027e3580bc940a6b7b4aaf1869bae267f7ff30e359e523d5de70e317106
* | | vim-patch:6e649224926b (#15911)Christian Clason2021-10-05
| | | | | | | | | | | | Update runtime files https://github.com/vim/vim/commit/6e649224926bbc1df6a4fdfa7a96b4acb1f8bee0
* | | fix(healthcheck): update builtins to the new convention #15914Javier Lopez2021-10-05
| | | | | | | | | Adjust some builtin healthchecks to use Lua, after #15259
* | | ci: exclude lua-cjson from PVS report #15859dundargoc2021-10-05
| | |
* | | vim-patch:8.2.3473: some tcl files are not recognized #15912Christian Clason2021-10-05
| | | | | | | | | | | | | | | Problem: Some files with tcl syntax are not recognized. Solution: Add a few file patterns. (Doug Kearns) https://github.com/vim/vim/commit/78aa5ffe314f40d33666f03b833f66b11c3d0f67
* | | Merge pull request #15259 from muniter/muniter/checkhealth-from-luaMatthieu Coudron2021-10-05
|\ \ \ | | | | | | | | feat(checkhealth): support Lua healthchecks
| * | | feat(ex_checkhealth): provide function for command line completionJavier López2021-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move away from providing completion with ExpandRTDir to ExpandGeneric providing the function get_healthcheck_name which caches the results for the current command line prompt. It does the almost the same thing the Vim function 'get_healthcheck' implemented in 'runtime/autoload/health.vim' does.
| * | | docs(runtime/health): update with new lua supportJavier López2021-10-04
| | | | | | | | | | | | | | | | | | | | | | | | - describe how the lua support works - explain new behavior of :checkhealth * - fixed formatting to use tab instead of spaces
| * | | test(runtime/health): cover lua healthchecksJavier López2021-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add tests for lua healthchecks (failure, success and submodules). - Reword some of the test naming for improved logs readability. - Modify render test to accomodate the changes of the health autoload function. - Add test for :checkhealth completion of Lua healtchecks.
| * | | feat(runtime/health): support lua healthchecksJavier López2021-10-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Refactor health.vim to discover lua healthcheck in the runtime directories lua/**/health{/init}.lua - Support healthchecks for lua submodules e.g :checkhealth vim.lsp and also support wildcard "*" at the end for all submodules :checkhealth vim* - Refactor health.vim to use variable scope instead of output capturing - Create health.lua module to wrap report functions and future extensibility. - Move away from searching just in the runtimepath, use `nvim_get_runtime_file` due to #15632 Example: Plugin linter in rtp can declare it's checkhealts in lua module `lua/linter/health{/init}.lua` that returns a table with a method "check" that when executed calls the report functions provided by the builtin lua module require("health"). The plugin also has a submodule `/lua/linter/providers` in which it defines `/lua/linter/providers/health{/init}.lua` This plugin healthcheck can now be run by the ex command: `:checkhealth linter linter.providers` Also calling all submodules can be done by: `:checkhealth linter* And "linter" and "linter.provider" would be discovered when: `:checkhealth`
* | | | docs(develop.txt): nvim_open_win is now in win_config.c (#15909)zeertzjq2021-10-04
| | | |
* | | | Merge pull request #15813 from bfredl/neomouseBjörn Linse2021-10-04
|\ \ \ \ | | | | | | | | | | fix(mouse): correct dragged position in composed layout
| * | | | fix(mouse): correct dragged position in composed layoutBjörn Linse2021-10-04
| | | | |
* | | | | docs: fix typoAditya Kurdunkar2021-10-04
| | | | |
* | | | | Merge pull request #15901 from bfredl/apiorgBjörn Linse2021-10-04
|\ \ \ \ \ | |_|/ / / |/| | | | refactor(api): re-organanize public and private API functions
| * | | | refactor(api): move window config related functions to own fileBjörn Linse2021-10-04
| | | | |
| * | | | refactor(api): make export of functions opt-in, not opt-outBjörn Linse2021-10-03
| |/ / /
* | | | refactor: inline unnecessary macros #15890dundargoc2021-10-04
| | | |
* | | | feat(startup): load builtin plugins with --clean #15893Gregory Anders2021-10-04
| | | | | | | | | | | | Closes #15605
* | | | refactor: remove redundant char casts #15888dundargoc2021-10-04
| | | |
* | | | Merge pull request #15894 from gpanders/hardcode-diagnostic-highlightsBjörn Linse2021-10-04
|\ \ \ \ | | | | | | | | | | refactor: define diagnostic highlights in syntax.c
| * | | | refactor: define diagnostic highlights in syntax.cGregory Anders2021-10-03
|/ / / /
* | | | Merge #15218 from gpanders/split-trimemptyJustin M. Keyes2021-10-03
|\ \ \ \ | | | | | | | | | | feat(lua): add "noempty" param to vim.split()