Commit Graph

23348 Commits

Author SHA1 Message Date
Vedant
31a19c1894 ci(publish-winget): use versioned tags for action #20417 2023-01-15 14:55:50 +01:00
github-actions[bot]
5d5a155685 [Backport release-0.8] fix(api): nvim_create_autocmd crash on invalid types inside pattern array (#21777)
fix(api): nvim_create_autocmd crash on invalid types inside pattern array

(cherry picked from commit 46cef24321)

Co-authored-by: ii14 <ii14@users.noreply.github.com>
2023-01-12 09:28:32 -08:00
zeertzjq
2b512a1d25 Merge pull request #21652 from neovim/backport-21650-to-release-0.8
[Backport release-0.8] fix(diff): avoid restoring invalid 'foldcolumn' value
2023-01-05 10:02:01 +08:00
zeertzjq
4a52467f77 fix(diff): avoid restoring invalid 'foldcolumn' value
Use "0" for 'foldcolumn' when w_p_fdc_save is empty, like how
"manual" is used for 'foldmethod' when w_p_fdm_save is empty.

(cherry picked from commit 5f04b164e6)
2023-01-05 01:50:26 +00:00
zeertzjq
f427fc780d Merge pull request #21651 from neovim/backport-21451-to-release-0.8
[Backport release-0.8] fix(clipboard): show provider warning when not during batch changes
2023-01-05 09:47:13 +08:00
zeertzjq
384caf8c1c fix(clipboard): show provider warning when not during batch changes
It is strange that Ex commands that explicitly interact with the
clipboard show provider warning, but Normal mode commands do not.

(cherry picked from commit c98571de2a)
2023-01-05 01:32:21 +00:00
github-actions[bot]
8bbed45e10 [Backport release-0.8] fix(lsp): check active_clients table length first (#21593)
Co-authored-by: Mathias Fußenegger <mfussenegger@users.noreply.github.com>
Co-authored-by: Raphael <glephunter@gmail.com>
2022-12-31 13:22:03 +01:00
github-actions[bot]
056b24445f [Backport release-0.8] docs: clarify line about converse of lua-heredoc (#21595)
docs: clarify line about converse of lua-heredoc

(cherry picked from commit fdfe700e5d)

Co-authored-by: sean.twie03 <nothankyou@gmail.com>
2022-12-30 17:56:49 +01:00
bfredl
2a4a532f6c version bump 2022-12-29 17:15:59 +01:00
bfredl
1fa917f9a1 NVIM 0.8.2
Features
- help: Highlighted codeblocks for plugin documentation

Documentation
- lua: Add guide to using Lua in Neovim (#21137)
- Mention how to remove the "How-to disable mouse" menu item
- Fix order of numbers in syntax.txt
- lua: Correct the tags for vim.opt_local and vim.opt_global (#21138)

Bug Fixes
- api: Set correct curbuf when temporarily changing curwin
- api: "emsg_silent" should imply "silent" in nvim_cmd
- decoration: Do not reset must_redraw after calling providers
- diagnostic: Clear stale cache on reset (#21454)
- events: Save v:event for cmdline autocommands separately
- float: Fix ml_get error with bufpos
- float: Fix crash with bufpos and non-existent window
- folds: Use long for number of folded lines
- mappings: Use all buckets in second round of unmap
- memory: Fix memory alignment for dynamic allocation
- options: Fix local 'sidescrolloff' doesn't work for mouse
- options: Restore exists() behavior for options
- terminal: Fix 'mousescroll' not respected in terminal mode
- tui: Set cursor color parameter as string when required
- win_close: Remove float grid after closing buffer

Build System Fixes
- Restrict `git describe` to top level source directory
v0.8.2
2022-12-29 17:12:10 +01:00
zeertzjq
73298d1cd6 Merge pull request #21582 from neovim/backport-21581-to-release-0.8
[Backport release-0.8] docs: fix order of numbers in syntax.txt
2022-12-29 12:52:52 +08:00
Ryan Mehri
0eb155cd26 docs: fix order of numbers in syntax.txt
(cherry picked from commit 6fc8248af9)
2022-12-29 04:42:08 +00:00
zeertzjq
da68023d98 Merge pull request #21564 from neovim/backport-20722-to-release-0.8
[Backport release-0.8] vim-patch:9.0.0788: ModeChanged autocmd not executed when Visual ends with CTRL-C
2022-12-28 13:58:45 +08:00
zeertzjq
3892ba2405 vim-patch:9.0.0788: ModeChanged autocmd not executed when Visual ends with CTRL-C
Problem:    ModeChanged autocmd not executed when Visual mode is ended with
            CTRL-C.
Solution:   Do not trigger the autocmd when got_int is set. (closes vim/vim#11394)
61c4b04799

Cherry-pick removal of cmdwin feature check from patch 9.0.0663.

(cherry picked from commit 0b3328d15a)
2022-12-28 05:48:18 +00:00
zeertzjq
9c109a46d3 Merge pull request #21554 from neovim/backport-21551-to-release-0.8
[Backport release-0.8] fix(win_close): remove float grid after closing buffer
2022-12-27 18:19:05 +08:00
zeertzjq
d5bdcb2bd7 fix(win_close): remove float grid after closing buffer
It is not safe to remove the float grid when autocommands can still be
triggered, as autocommands may use the float grid.

(cherry picked from commit 9a5e80af56)
2022-12-27 09:37:08 +00:00
zeertzjq
e951181d84 refactor(win_close): suppress clang "Dereference of NULL pointer" 2022-12-27 17:36:02 +08:00
zeertzjq
2542aa0b75 Merge pull request #21535 from neovim/backport-21534-to-release-0.8
[Backport release-0.8] fix(mappings): use all buckets in second round of unmap
2022-12-26 11:44:07 +08:00
zeertzjq
172202b49a fix(mappings): use all buckets in second round of unmap
(cherry picked from commit 32b5afd768)
2022-12-26 03:21:19 +00:00
bfredl
68ef157cc2 Merge pull request #21514 from neovim/backport-vimdoc
[Backport release-0.8] syntax-highlighted codeblocks
2022-12-24 11:24:46 +01:00
dundargoc
460c1b7888 docs(lua): correct the tags for vim.opt_local and vim.opt_global (#21138) 2022-12-23 12:31:37 +01:00
dundargoc
cc02cfee2f docs(lua): add guide to using Lua in Neovim (#21137)
Add introductory guide explaining how to use Lua in Neovim:
where to put Lua files, how to set variables and options, how
to create mappings, autocommands, and user commands.

Adapted with kind permission from
https://github.com/nanotee/nvim-lua-guide
2022-12-23 12:22:51 +01:00
Christian Clason
342312b8ad feat(help): highlighted codeblocks
cherry-picked from 5093f38c9f

(omit partial doc change)
2022-12-23 12:15:14 +01:00
zeertzjq
b840eb6945 Merge pull request #21511 from neovim/backport-21510-to-release-0.8
[Backport release-0.8] fix(options): restore exists() behavior for options
2022-12-23 14:14:32 +08:00
zeertzjq
799e5fb92b fix(options): restore exists() behavior for options
Duplicating get_option_value() logic for an obscure future refactor
isn't really worthwhile, and findoption() isn't used anywhere else
outside the options code.

(cherry picked from commit 09841ccbc3)
2022-12-23 06:02:07 +00:00
zeertzjq
9a6a7ad469 refactor(get_option_tv): rename opt_flags to scope 2022-12-23 14:01:02 +08:00
zeertzjq
76987e8f04 Merge pull request #21492 from neovim/backport-21459
[Backport release-0.8] fix(decoration): do not reset must_redraw after calling providers
2022-12-21 23:59:36 +08:00
zeertzjq
d0f71270cc fix(decoration): do not reset must_redraw after calling providers
Resetting must_redraw caused a strange bug #21278.
Remove the goto as well, as it doesn't make much sense after #20665.
2022-12-21 23:46:28 +08:00
zeertzjq
d849640613 Merge pull request #21481 from neovim/backport-21479-to-release-0.8
[Backport release-0.8] test(old): make test_signs.vim closer to upstream
2022-12-20 12:29:31 +08:00
zeertzjq
d2582350b2 test(old): make test_signs.vim closer to upstream
(cherry picked from commit 5391e8b002)
2022-12-20 04:16:49 +00:00
zeertzjq
bd3634d7a4 Merge pull request #21468 from neovim/backport-21407-to-release-0.8
[Backport release-0.8] fix(tui): set cursor color parameter as string when required
2022-12-19 07:23:33 +08:00
Thomas Churchman
1860792ed6 fix(tui): set cursor color parameter as string when required
(cherry picked from commit d85723b268)
2022-12-18 23:11:23 +00:00
Mathias Fußenegger
48f0545594 fix(diagnostic): clear stale cache on reset (#21454)
The BufWipeout autocmd is not 100% reliable and may leave stale entries
in the cache. This is sort of a hack/workaround to ensure
`vim.diagnostic.reset` calls don't fail if there are stale cache entries
but instead clears them

Fixes errors like

    Error executing vim.schedule lua callback: /usr/share/nvim/runtime/lua/vim/diagnostic.lua:1458: Invalid buffer id: 22
    stack traceback:
            [C]: in function 'nvim_exec_autocmds'
            /usr/share/nvim/runtime/lua/vim/diagnostic.lua:1458: in function 'reset'

(cherry picked from commit 1743359235)
2022-12-18 19:25:20 +01:00
zeertzjq
9bda3b3e04 Merge pull request #21466 from neovim/backport-21465-to-release-0.8
[Backport release-0.8] vim-patch:9.0.1072: screenpos() column result in fold may be too small
2022-12-18 21:39:52 +08:00
zeertzjq
23202944ec vim-patch:9.0.1072: screenpos() column result in fold may be too small
Problem:    screenpos() column result in fold may be too small.
Solution:   Add space of 'number', sign column, etc. (closes vim/vim#11715)

ba2d191932
(cherry picked from commit 56b77dc171)
2022-12-18 13:26:51 +00:00
zeertzjq
bc6ff78fad Merge pull request #21449 from neovim/zeertzjq-patch-1
[Backport release-0.8] fix(folds): use long for number of folded lines
2022-12-17 08:38:21 +08:00
zeertzjq
3510298930 fix(folds): use long for number of folded lines 2022-12-17 08:14:27 +08:00
zeertzjq
5b718e8c12 Merge pull request #21439 from neovim/backport-21438-to-release-0.8
[Backport release-0.8] fix(api): "emsg_silent" should imply "silent" in nvim_cmd
2022-12-16 09:13:56 +08:00
zeertzjq
a9e78dd2f6 fix(api): "emsg_silent" should imply "silent" in nvim_cmd
(cherry picked from commit bad66a1e09)
2022-12-16 00:54:49 +00:00
zeertzjq
ad82f59f59 Merge pull request #21425 from neovim/backport-21415-to-release-0.8
[Backport release-0.8] fix(terminal): fix 'mousescroll' not respected in terminal mode
2022-12-15 09:43:22 +08:00
zeertzjq
da47f6e56a fix(terminal): fix 'mousescroll' not respected in terminal mode
(cherry picked from commit 7c0e5e68a4)
2022-12-15 01:15:26 +00:00
zeertzjq
faa5ecce93 Merge pull request #21395 from neovim/backport-21394-to-release-0.8
[Backport release-0.8] docs: mention how to remove the "How-to disable mouse" menu item
2022-12-13 09:53:10 +08:00
zeertzjq
ec2d6dc955 docs: mention how to remove the "How-to disable mouse" menu item
(cherry picked from commit da2501c5bd)
2022-12-13 01:44:29 +00:00
zeertzjq
ca4a600e43 Merge pull request #21372 from neovim/backport-21371-to-release-0.8
[Backport release-0.8] fix(api): set correct curbuf when temporarily changing curwin
2022-12-10 20:27:49 +08:00
zeertzjq
b8b2101540 fix(api): set correct curbuf when temporarily changing curwin
(cherry picked from commit 44f22adb22)
2022-12-10 12:14:23 +00:00
zeertzjq
45d593e1c8 Merge pull request #21351 from neovim/backport-21338-to-release-0.8
[Backport release-0.8] vim-patch:9.0.{1030,1032}: using freed memory with the cmdline popup menu
2022-12-09 08:34:30 +08:00
zeertzjq
6f386c75c4 vim-patch:9.0.1032: test fails when terminal feature is missing
Problem:    Test fails when terminal feature is missing.
Solution:   Use CheckRunVimInTerminal.

b9603f6498

Co-authored-by: Bram Moolenaar <Bram@vim.org>
(cherry picked from commit 95c655fedc)
2022-12-09 00:18:28 +00:00
zeertzjq
21ea794690 vim-patch:9.0.1030: using freed memory with the cmdline popup menu
Problem:    Using freed memory with the cmdline popup menu.
Solution:   Clear the popup menu when clearing the matches. (closes vim/vim#11677)

038e6d20e6

Co-authored-by: Bram Moolenaar <Bram@vim.org>
(cherry picked from commit 4d22424d9e)
2022-12-09 00:18:28 +00:00
zeertzjq
0bc56cebe7 Merge pull request #21349 from neovim/backport-21348-to-release-0.8
[Backport release-0.8] vim-patch:9.0.1036: undo misbehaves when writing from an insert mode mapping
2022-12-09 07:42:24 +08:00
zeertzjq
cf7ae5f2f9 test(undo_spec): add more tests for writing in Insert mode
(cherry picked from commit 95044991e6)
2022-12-08 23:24:46 +00:00