Commit Graph

23363 Commits

Author SHA1 Message Date
zeertzjq
2ecbd7f598 Merge pull request #22026 from neovim/backport-21793-to-release-0.8
[Backport release-0.8] fix(rbuffer): handle edge case where write_ptr has wrapped around too early
2023-01-28 08:20:46 +08:00
zeertzjq
bb1ba8d62b Merge pull request #22025 from neovim/backport-21899-to-release-0.8
[Backport release-0.8] fix(rpc): don't parse msgpack if buflen is 0
2023-01-28 08:00:09 +08:00
zeertzjq
cf656e0316 Merge pull request #22027 from neovim/backport-21874-to-release-0.8
[Backport release-0.8] revert: "shada/context: fully remove jumplist duplicates #10898"
2023-01-28 07:34:21 +08:00
zeertzjq
09f2293a99 Merge pull request #22024 from neovim/backport-20766-to-release-0.8
[Backport release-0.8] fix(filetype): don't pass empty string to detect
2023-01-28 07:31:35 +08:00
zeertzjq
fec5b0f164 revert: "shada/context: fully remove jumplist duplicates #10898"
This reverts commit 8b8ecf44f2.
Fix #21082.

(cherry picked from commit 6fe9fbdd2f)
2023-01-27 23:24:09 +00:00
bfredl
9aacf9bf66 fix(rbuffer): handle edge case where write_ptr has wrapped around
when using the rbuffer as a linear buffer, exactly filling the buffer
will case write_ptr to wrap around too early. For now detect this
special case.

Of course, the rbuffer should refactored to a proper ring buffer where
write_pos >= read_pos always and there is no special case for full
buffers. This will be a follow up change.

(cherry picked from commit 8ebdb97ea7)
2023-01-27 23:21:32 +00:00
zeertzjq
08b375d750 fix(rpc): don't parse msgpack if buflen is 0
This prevents `buflen` from becoming a very large number when it is 0
when calling mpack_rtoken().

(cherry picked from commit 266f42ed8b)
2023-01-27 23:20:53 +00:00
Christian Clason
f1bf7a5fda fix(filetype): don't pass empty string to detect
Problem: `*.db` files use empty string as default filetype, which is
inconsistent with the rest of the code which uses `nil` instead.
Solution: don't pass a default empty string

(cherry picked from commit 8bfde69007)
2023-01-27 23:20:08 +00:00
Christian Clason
383cddd784 Merge pull request #21841 from neovim/backport-21828-to-release-0.8
[Backport release-0.8] build(deps): bump libvterm to v0.3.1
2023-01-16 19:16:11 +01:00
Christian Clason
9cd7e6d845 build(deps): bump libvterm to v0.3.1
Included patches:

821. By Paul "LeoNerd" Evans on 2022-12-29
Don't bother to emit the unrecognised sequence in DECRQSS response as it provides an echo roundtrip possibility

820. By Paul "LeoNerd" Evans on 2022-11-26
erase_internal() should only set fg/bg colour, resetting other attributes (especially RV)

819. By Paul "LeoNerd" Evans on 2022-11-09
Added vterm_screen_set_default_colors(), which repaints the cells in the buffer(s)

818. By Paul "LeoNerd" Evans on 2022-11-09
Permit either colour argument to be NULL to vterm_state_set_default_colors()

817. By Paul "LeoNerd" Evans on 2022-10-01
Delete the mk_wcswidth functions as they're not used; guard the CJK-wide one with an ifdef as by default we don't use it

816. By Paul "LeoNerd" Evans on 2022-10-01
Make sure to supply empty (void) prototype to functions that take no arguments in bin/vterm-ctrl.c

(cherry picked from commit 7295ed1f6f)
2023-01-16 18:04:59 +00:00
dundargoc
2572288279 Merge pull request #21820 from dundargoc/release/0.8/ci
ci: sync release workflow with master
2023-01-15 15:33:24 +01:00
zeertzjq
4ac67e8a60 ci(release): properly set multiline output variable (#21560) 2023-01-15 15:08:18 +01:00
Vedant
08ebdeca37 ci(release/winget): correctly set output variable (#21077) 2023-01-15 15:07:09 +01:00
dundargoc
047eeb67ba ci: replace deprecated feature set-output (#20834)
The new recommended way to share values between Github Actions steps is
to use environment files:
https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter
2023-01-15 15:06:33 +01:00
Justin M. Keyes
c5d688c54e vim-patch: bump VIM_VERSION from 8.0 => 8.1 #20762
There are 6 remaining 8.0.x patches, tracked in:
https://github.com/neovim/neovim/issues/5431
2023-01-15 15:05:57 +01:00
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