Commit Graph

23379 Commits

Author SHA1 Message Date
b1ae775de6 fix(treesitter): really backup spelloptions (#22145)
see 0887ad1cbb for the original commit on
master, and 80bbba94d6 for the backport on
the branch, which forgot to backup the original setting value.
2023-02-07 09:37:14 +01:00
70fb40a229 version bump 2023-02-02 14:36:16 +01:00
129264dbb4 Bugfix/maintenance release.
Bug Fixes
- clipboard: Show provider warning when not during batch changes
- diff: Avoid restoring invalid 'foldcolumn' value
- filetype: Don't pass empty string to detect
- messages: fix Reset msg_grid_scroll_discount when redrawing
- rbuffer: Handle edge case where write_ptr has wrapped around
- rpc: Don't parse msgpack if buflen is 0
- treesitter: Properly restore `'syntax'` (#21358)
- treesitter: Validate language name

Build System
- deps: Bump libvterm to v0.3.1
- deps: Bump tree-sitter-vimdoc to v1.3.0
v0.8.3
2023-02-02 14:33:23 +01:00
b49f5c7882 Merge pull request #22085 from neovim/backport-21000-to-release-0.8
[Backport release-0.8] fix(messages): reset msg_grid_scroll_discount when redrawing
2023-02-01 20:09:21 +08:00
42cdb79949 Merge pull request #22084 from zeertzjq/vim-patch-backport
Backport Vim patches to release-0.8
2023-02-01 19:53:13 +08:00
c00f42cc21 fix(messages): reset msg_grid_scroll_discount when redrawing
(cherry picked from commit 27c529752a)
2023-02-01 11:28:14 +00:00
54f4fb512a vim-patch:9.0.1270: crash when using search stat in narrow screen
Problem:    Crash when using search stat in narrow screen.
Solution:   Check length of message. (closes vim/vim#11921)
a7d36b7320
2023-02-01 19:26:49 +08:00
b61431e97f vim-patch:9.0.{0822,0823,0824,0825}: window dragging fixes
vim-patch:9.0.0822: crash when dragging the statusline with a mapping

Problem:    Crash when dragging the statusline with a mapping.
Solution:   Check for valid window pointer. (issue vim/vim#11427)

8ab9ca93ee

vim-patch:9.0.0823: mouse drag test fails

Problem:    Mouse drag test fails.
Solution:   Only reset the mouse click flag when actually switching to another
            tab page.  Disable test that keeps failing.

7a7db047dc

Omit test_termcodes.vim change: reverted in patch 9.0.0825.

vim-patch:9.0.0824: crash when using win_move_separator() in other tab page

Problem:    Crash when using win_move_separator() in other tab page.
Solution:   Check for valid window in current tab page.
            (closes vim/vim#11479, closes vim/vim#11427)

873f41a018

vim-patch:9.0.0825: cannot drag an entry in the tabpage line

Problem:    Cannot drag an entry in the tabpage line.
Solution:   Clear dragwin instead of got_click. (closes vim/vim#11483,
            closes vim/vim#11482)

8e0ccb6bc2

Omit Test_term_mouse_drag_to_move_tab(): covered by ui/mouse_spec.lua.

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-02-01 19:26:49 +08:00
25b189a58b Merge pull request #22083 from neovim/backport-22082-to-release-0.8
[Backport release-0.8] build(deps): bump tree-sitter-vimdoc to v1.3.0
2023-02-01 12:22:05 +01:00
00d105f802 build(deps): bump tree-sitter-vimdoc to v1.3.0
(cherry picked from commit 37da48cabd)
2023-02-01 11:09:33 +00:00
1789ce1195 Merge pull request #22074 from neovim/backport-22005-to-release-0.8
[Backport release-0.8] fix(treesitter): validate language name
2023-01-31 18:06:18 +01:00
7dcf0a0e6a fix(test): adapt test to release-0.8 2023-01-31 17:38:47 +01:00
1e600d3b0a fix(treesitter): validate language name
Problem: Some injections (like markdown) allow specifying arbitrary
language names for code blocks, which may be lead to errors when
looking for a corresponding parser in runtime path.

Solution: Validate that the language name only contains alphanumeric
characters and `_` (e.g., for `c_sharp`) and error otherwise.

(cherry picked from commit c032e83b22)
2023-01-31 16:29:10 +00:00
dd086292c7 Merge pull request #22023 from neovim/fix-syntax
* fix(treesitter): properly restore `'syntax'` (#21358)
* fix(treesitter): really restore syntax
    - also unset b:ts_highlight on stop()
    Fixes: #21836
2023-01-28 10:59:50 +01:00
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
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
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
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
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
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
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
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
80bbba94d6 fix(treesitter): really restore syntax
- also unset b:ts_highlight on stop()

Fixes: #21836
2023-01-28 00:07:03 +01:00
de66d54e05 fix(treesitter): properly restore 'syntax' (#21358) 2023-01-28 00:04:18 +01:00
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
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
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
4ac67e8a60 ci(release): properly set multiline output variable (#21560) 2023-01-15 15:08:18 +01:00
08ebdeca37 ci(release/winget): correctly set output variable (#21077) 2023-01-15 15:07:09 +01:00
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
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
31a19c1894 ci(publish-winget): use versioned tags for action #20417 2023-01-15 14:55:50 +01:00
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
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
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
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
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
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
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
2a4a532f6c version bump 2022-12-29 17:15:59 +01:00
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
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
0eb155cd26 docs: fix order of numbers in syntax.txt
(cherry picked from commit 6fc8248af9)
2022-12-29 04:42:08 +00:00
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
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
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
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
e951181d84 refactor(win_close): suppress clang "Dereference of NULL pointer" 2022-12-27 17:36:02 +08:00
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
172202b49a fix(mappings): use all buckets in second round of unmap
(cherry picked from commit 32b5afd768)
2022-12-26 03:21:19 +00:00