Commit Graph

23319 Commits

Author SHA1 Message Date
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
zeertzjq
eacc8230ed vim-patch:9.0.1036: undo misbehaves when writing from an insert mode mapping
Problem:    Undo misbehaves when writing from an insert mode mapping.
Solution:   Sync undo when writing. (closes vim/vim#11674)

3f8f827723

Co-authored-by: Bram Moolenaar <Bram@vim.org>
(cherry picked from commit 70d6c335b1)
2022-12-08 23:24:46 +00:00
github-actions[bot]
927074c97a
[Backport release-0.8] fix (#18501): chansend sending lines to terminal buffer in reverse order in Windows (#21344)
* fix(chansend): sending lines to terminal in reverse order on Windows #19315

Problem: `chansend()` on Windows sends lines in reverse order.
Cause: Using \n instead of \r\n for newlines on Windows.
Solution: on Windows, use CRLF newline characters.

Fixes #18501

(cherry picked from commit d5004aab27)

* fixup! fix(chansend): sending lines to terminal in reverse order on Windows #19315

(cherry picked from commit d313491a8b)

Co-authored-by: Enan Ajmain <3nan.ajmain@gmail.com>
Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
2022-12-08 14:00:57 -08:00
zeertzjq
e5fda53f5d
Merge pull request #21323 from neovim/backport-21162-to-release-0.8
[Backport release-0.8] fix(options): fix local 'sidescrolloff' doesn't work for mouse
2022-12-07 13:09:17 +08:00
zeertzjq
a853becfea fix(options): fix local 'sidescrolloff' doesn't work for mouse
Missing part of Vim patch 8.1.0864.

(cherry picked from commit 9caa4c8236)
2022-12-07 04:56:13 +00:00
zeertzjq
015d3ddcfe
Merge pull request #21320 from neovim/backport-21319-to-release-0.8
[Backport release-0.8] fix(float): fix crash with bufpos and non-existent window
2022-12-07 11:48:30 +08:00
zeertzjq
8d41ffcb5b fix(float): fix crash with bufpos and non-existent window
(cherry picked from commit 759b04a2e7)
2022-12-07 03:37:13 +00:00
zeertzjq
17f636cf23
Merge pull request #21317 from neovim/backport-21316-to-release-0.8
[Backport release-0.8] fix(events): save v:event for cmdline autocommands separately
2022-12-07 09:08:29 +08:00
zeertzjq
ccb718a23d fix(events): save v:event for cmdline autocommands separately
(cherry picked from commit 4ef6efe927)
2022-12-07 00:58:05 +00:00
zeertzjq
9bd5ba83ab
Merge pull request #21304 from neovim/backport-21302-to-release-0.8
[Backport release-0.8] vim-patch:8.2.{3193,4204,4389},9.0.{1011,1016}: screenpos() fixes
2022-12-06 09:41:39 +08:00
zeertzjq
78caeae92f vim-patch:9.0.1016: screenpos() does not count filler lines for diff mode
Problem:    screenpos() does not count filler lines for diff mode.
Solution:   Add filler lines. (closes 11658)

1cb16c3a20

Co-authored-by: Bram Moolenaar <Bram@vim.org>
(cherry picked from commit 52b3e8bdef)
2022-12-06 00:40:31 +00:00
zeertzjq
65c8851098 vim-patch:9.0.1011: ml_get error when using screenpos()
Problem:    ml_get error when using screenpos().
Solution:   Give an error for the line number. (closes vim/vim#11661)

99d19438ca

Co-authored-by: Bram Moolenaar <Bram@vim.org>
(cherry picked from commit 0909d987fe)
2022-12-06 00:40:31 +00:00
zeertzjq
e2afca9c76 vim-patch:8.2.4389: screenpos() does not handle a position in a closed fold
Problem:    screenpos() does not handle a position in a closed fold.
Solution:   Check if the position is inside a closed fold. (closes vim/vim#9778)

4556a2e868

Co-authored-by: Bram Moolenaar <Bram@vim.org>
(cherry picked from commit 10af0549df)
2022-12-06 00:40:31 +00:00
zeertzjq
ebfe54617f vim-patch:8.2.4204: screenpos() has non-zero row for invisible text
Problem:    screenpos() has non-zero row for invisible text.
Solution:   Only add the window row when the text is visible. (closes vim/vim#9618)

7924a17791

Co-authored-by: Bram Moolenaar <Bram@vim.org>
(cherry picked from commit 6f9cda0f0a)
2022-12-06 00:40:31 +00:00
zeertzjq
bc4d11cd9d fix(float): fix ml_get error with bufpos
(cherry picked from commit e120a049f0)
2022-12-06 00:40:31 +00:00
zeertzjq
9f5c5abd42 vim-patch:8.2.3193: screenpos() is wrong when 'display' is "lastline"
Problem:    screenpos() is wrong when the last line is partially visible and
            'display' is "lastline".
Solution:   Also compute the position for a partially visible line.
            (closes vim/vim#8599)

189663bdac

Co-authored-by: Bram Moolenaar <Bram@vim.org>
(cherry picked from commit 11d2704274)
2022-12-06 00:40:31 +00:00
github-actions[bot]
922a3c33f1
[Backport release-0.8] fix(lsp): ensure open_logfile is safe for fast events (#21290)
fix(lsp): ensure open_logfile is safe for fast events

Closes https://github.com/neovim/neovim/issues/21052

(cherry picked from commit a4100e1072)

Co-authored-by: Mathias Fussenegger <f.mathias@zignar.net>
2022-12-04 19:05:27 +01:00
zeertzjq
4d0fabfe4b
Merge pull request #21263 from neovim/backport-20993-to-release-0.8
[Backport release-0.8] build: restrict `git describe` to top level source directory
2022-12-02 21:48:25 +08:00
Jan Palus
4bef100e47 build: restrict git describe to top level source directory
fix version determination when building neovim from release tarball
extracted within another git repository

(cherry picked from commit 53ba7b9a5a)
2022-12-02 12:46:15 +00:00
zeertzjq
346f77c5a6
Merge pull request #21219 from neovim/backport-20894-to-release-0.8
[Backport release-0.8] vim-patch:9.0.0821: crash with win_move_statusline() in another tabpage
2022-11-29 00:30:49 +08:00
zeertzjq
4152151c94 vim-patch:9.0.0821: crash with win_move_statusline() in another tabpage
vim-patch:86e6717ace4f

Problem:    Crash when using win_move_statusline() in another tab page.
Solution:   Check for valid window pointer. (issue vim/vim#11427)

86e6717ace

Co-authored-by: Bram Moolenaar <Bram@vim.org>
(cherry picked from commit d2a22242fb)
2022-11-28 16:30:18 +00:00
Christian Clason
742bd4c181
Merge pull request #21127 from neovim/backport-20489-to-release-0.8
[Backport release-0.8] memory: fix memory alignment for dynamic allocation
2022-11-19 22:43:54 +01:00
bfredl
41192dae78 refactor(memory): simplify new alignment logic
In particular, we can assume the xmalloc-ed pointer is at least
double-aligned, otherwise nothing work work.

(cherry picked from commit 8b7247af7d)
2022-11-19 20:07:30 +00:00
Jan Palus
9c32331904 fix(memory): fix memory alignment for dynamic allocation
all pointers returned by arena_alloc residing in arena block should be
properly aligned

to meet neovim's alignment requirements but keeping it simple settle on
ARENA_ALIGN = MAX(sizeof(void *), sizeof(double)).

(cherry picked from commit 0240fd6d0f)
2022-11-19 20:07:30 +00:00
bfredl
b994deb0aa version bump 2022-11-14 10:16:44 +01:00
bfredl
935615ffed NVIM 0.8.1
This is mainly a bugfix release, but there a few feature additions.

Features
- extmarks: Allow preventing spellchecking with spell = false
- spell: Support nospell in treesitter queries
- man: Add health check
- docs-html: Try to use tags for ToC headings

Bug Fixes
- ui: Setting 'cmdheight' with global statusline
- ui: Fix highlights not being updated with 'winhl'
- Make_filter_cmd for :! powershell
- :! pwsh redirection for `command not found`
- Find multibyte file name in line
- Avoid unsigned overflow in home_replace()
- docs-html: Update parser
- folds: Fix fold marker multibyte comparison
- health: Correct tmux rgb verification
- man.lua: Set modifiable before writing page
- mouse: Ensure no scrolling with "ver:0" in 'mousescroll'
- paste: Feed keys as typed in cmdline mode
- qflist: Avoid read of uninitialized memory
- spell: Fix wrong cast
- stdpath: Default to /tmp if stdpath('run') cannot be created
- tui: Resume main thread if suspending isn't implemented

Documentation
- lsp: Vim.lsp.range_code_action() is not deprecated
2022-11-14 10:12:05 +01:00
bfredl
3e0783db43
Merge pull request #21042 from neovim/backport-20178-to-release-0.8
[Backport release-0.8] feat(extmarks): allow preventing spellchecking with spell = false
2022-11-13 11:16:36 +01:00
bfredl
32b0b13cc5
Merge pull request #21041 from neovim/backport-21033-to-release-0.8
[Backport release-0.8] fix(ui): fix some cases of stale highlight definitions
2022-11-13 11:10:12 +01:00
Lewis Russell
3d0ddd2d1f feat(spell): support nospell in treesitter queries
(cherry picked from commit 07eb4263ca)
2022-11-13 10:05:50 +00:00
Thomas Vigouroux
7a49cf4da9 feat(extmarks): allow preventing spellchecking with spell = false
(cherry picked from commit 7e6d785d19)
2022-11-13 10:05:50 +00:00