Commit Graph

25894 Commits

Author SHA1 Message Date
zeertzjq
dbe27f45b2
Merge pull request #26313 from zeertzjq/backport
Backport to release-0.9
2023-11-30 08:20:37 +08:00
zeertzjq
18ae9cb35f test: :terminal when 'shell' uses backslashes 2023-11-30 08:00:09 +08:00
Luki446
6a0d19229d fix(terminal): make backslashes in 'shell' work on Windows
If backslashes are used in 'shell' option, escape them to make Terminal
mode work.
2023-11-30 07:58:57 +08:00
zeertzjq
22270ae8e9
test(ex_terminal_spec): unskip tests that work on Windows (#26311) 2023-11-30 07:28:32 +08:00
Christian Clason
76d79c1ce3
Merge pull request #26299 from neovim/backport-26085-to-release-0.9
[Backport release-0.9] fix(treesitter): make InspectTree correctly handle nested injections
2023-11-29 15:34:06 +01:00
Pham Huy Hoang
753f8bcaab fix: make InspectTree handle nested injection
fixup: Use `TSNode:byte_length` instead
(cherry picked from commit 757bcdda30)
2023-11-29 14:17:14 +00:00
zeertzjq
8b9d6e8d63
Merge pull request #26272 from neovim/backport-25726-to-release-0.9
[Backport release-0.9] fix(rplugin): dont create data dir if it's a broken symlink
2023-11-28 19:37:51 +08:00
Samuel (ThinLinc team)
8a85eb7a21 fix: dont create data dir if it's a broken symlink
Checking if it's non-empty and not a directory gets us quite far, but
not all the way. While a working symlink would trigger the earlier
checks, a broken symlink does not.

This commit fixes the special case where ~/.local/share/nvim  already
exists but is a broken symlink. Thus, it fixes the following error on
startup:

E739: Cannot create directory /home/samuel/.local/share/nvim: file
already exists

(cherry picked from commit a6051e68a3)
2023-11-28 11:27:28 +00:00
zeertzjq
57f1bc34fc
Merge pull request #26210 from neovim/backport-26203-to-release-0.9
[Backport release-0.9] fix(oldtest): always use a 64-bit int for swapfile block number
2023-11-25 20:25:53 +08:00
James McCoy
66edb17b13 fix(oldtest): always use a 64-bit int for swapfile block number
09d4133 changed blocknr_T from long to int64_t, so pe_bnum is now always 64-bit.  This was an incompatible change in the swapfile format for 32-bit systems, but there have been no complaints in the past 9 years so just adjust the test.

(cherry picked from commit a1ded1b113)
2023-11-25 12:14:19 +00:00
James McCoy
0107243aaf
Merge pull request #26205 from jamessan/nlua_error-crash
fix(lua): crash in nlua_error
2023-11-25 07:07:44 -05:00
zeertzjq
6eecba3760
Merge pull request #26206 from neovim/backport-26201-to-release-0.9
[Backport release-0.9] fix(mouse): avoid dragging when clicking next to popupmenu
2023-11-25 07:21:04 +08:00
Luuk van Baal
a27e683ca5 fix(mouse): avoid dragging when clicking next to popupmenu
(cherry picked from commit bce65ee429)
2023-11-24 23:10:41 +00:00
James McCoy
98fbe3b09a
fix(lua): crash in nlua_error
Backport fix hidden in bd4ff0b88, by actually using the `msg` parameter,
rather than trying to print a potentially null `str`.
2023-11-24 16:43:41 -05:00
zeertzjq
07860aba75
Merge pull request #26188 from neovim/backport-26187-to-release-0.9
[Backport release-0.9] fix(mouse): avoid dragging after click label popupmenu callback
2023-11-24 09:27:28 +08:00
Luuk van Baal
2640ad0057 fix(mouse): avoid dragging after click label popupmenu callback
(cherry picked from commit c9be619f28)
2023-11-24 01:16:09 +00:00
zeertzjq
4065e2e3bd
Merge pull request #26186 from neovim/backport-26185-to-release-0.9
[Backport release-0.9] docs(starting.txt): correct step number
2023-11-24 07:29:39 +08:00
zeertzjq
900772f8eb docs(starting.txt): correct step number
(cherry picked from commit ba513b7438)
2023-11-23 23:19:25 +00:00
zeertzjq
ed6684ba99
Merge pull request #26178 from neovim/backport-26177-to-release-0.9
[Backport release-0.9] perf: remove redundant strlen in skipwhite
2023-11-24 05:43:28 +08:00
ii14
35ef7ac651 perf: remove redundant strlen in skipwhite
skipwhite was iterating over the input twice and scanning for the null
byte character with strlen. this is redundant, because it's already
covered by ascii_iswhite that accepts only space or tab character.

(cherry picked from commit b4743dfefa)
2023-11-23 21:26:50 +00:00
zeertzjq
c86be03216
Merge pull request #26161 from zeertzjq/backport
Backport to release-0.9
2023-11-23 16:52:54 +08:00
zeertzjq
3ed71c250c vim-patch:9.0.0598: using negative array index with negative width window
Problem:    Using negative array index with negative width window.
Solution:   Make sure the window width does not become negative.

8279af514c

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-11-23 15:58:19 +08:00
zeertzjq
cc8837db46 vim-patch:9.0.0492: cmdwin test fails on MS-Windows
Problem:    Cmdwin test fails on MS-Windows.
Solution:   Skip test on MS-Windows.

312af65d1a

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-11-23 15:58:14 +08:00
zeertzjq
d6f3b7bec7 vim-patch:9.0.0490: using freed memory with cmdwin and BufEnter autocmd
Problem:    Using freed memory with cmdwin and BufEnter autocmd.
Solution:   Make sure pointer to b_p_iminsert is still valid.

1c3dd8ddcb

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-11-23 15:58:09 +08:00
zeertzjq
c0855bfe8a vim-patch:9.0.0249: no test for what 9.0.0234 fixes
Problem:    No test for what 9.0.0234 fixes.
Solution:   Add a test. (issue vim/vim#10950)

3a7ad904d2

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-11-23 15:58:01 +08:00
zeertzjq
72b709fff9 vim-patch:9.0.0218: reading before the start of the line
Problem:    Reading before the start of the line.
Solution:   When displaying "$" check the column is not negative.

e98c88c44c

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-11-23 15:57:51 +08:00
zeertzjq
a9ea563b44 vim-patch:9.0.0064: confusing error when using "q:" in command line window
Problem:    Confusing error when using "q:" in command line window.
Solution:   Check for the situation and give a better error message.
            (closes vim/vim#10756)

c963ec31a0

Co-authored-by: Bram Moolenaar <Bram@vim.org>
2023-11-23 15:57:39 +08:00
Justin M. Keyes
2a467acc86
fix(defaults): set 'fsync' #26039
backport #26034

Problem:
'nofsync' may lose data if the system has a hard shutdown. #9888

Solution:
Change default to 'fsync'. This may be revisited in the future when
'nofsync' can be made safer.

Co-authored-by: Ploum <1233155+ploum@users.noreply.github.com>
2023-11-14 03:34:59 -08:00
zeertzjq
7ce36b7997
Merge pull request #25982 from zeertzjq/backport
Backport to release-0.9
2023-11-11 15:47:10 +08:00
zeertzjq
954696dda8 fix(highlight): apply 'winblend' to float border 2023-11-11 15:21:30 +08:00
330-127
5f194e40a5 docs: list NVIM_APPNAME as env on manpage 2023-11-11 15:21:30 +08:00
voidiz
3b9a906c98 fix(quickfix): check if delete failed in qf_fill_buffer()
When the contents of a quickfix buffer are replaced, there is a chance
that deletion of the previous lines fails. This ensures that we don't
get stuck in an infinite loop of retrying.

Fix #25402
2023-11-11 15:21:30 +08:00
dundargoc
90890238ac ci: work around flaky python3 tests
Python3 provider tests suddenly became extremely flaky on macos for
unknown reasons. For some reason, installing python with the
setup-python action over using the default python fixes the flakiness.
Use this workaround for the time being to unblock CI while we figure out
the root cause.
2023-11-11 15:21:30 +08:00
zeertzjq
797a9efeff
Merge pull request #25923 from neovim/backport-25922-to-release-0.9
[Backport release-0.9] fix(man): make :Man with a range work
2023-11-07 10:51:00 +08:00
zeertzjq
3320c3a322 fix(man): make :Man with a range work
(cherry picked from commit e41309c3b6)
2023-11-07 02:39:45 +00:00
zeertzjq
fabc05b077
Merge pull request #25921 from neovim/backport-25911-to-release-0.9
[Backport release-0.9] fix(lua): correct return value for on_key with no arguments
2023-11-07 08:43:36 +08:00
altermo
1413f3a971 fix(lua): correct return value for on_key with no arguments
(cherry picked from commit 3edc8417f0)
2023-11-07 00:33:58 +00:00
zeertzjq
412225c02a
Merge pull request #25849 from neovim/backport-25848-to-release-0.9
[Backport release-0.9] fix(terminal): keep focus when scrolling number column of another window
2023-10-31 15:33:56 +08:00
zeertzjq
5b87e58c5a fix(terminal): keep focus when scrolling number column of another window
(cherry picked from commit ca0a603bce)
2023-10-31 07:23:40 +00:00
zeertzjq
6f64a93764
Merge pull request #25846 from neovim/backport-25845-to-release-0.9
[Backport release-0.9] fix(terminal): don't lose focus on <MouseMove>
2023-10-31 12:16:18 +08:00
zeertzjq
edbe109762 fix(terminal): don't lose focus on <MouseMove>
(cherry picked from commit e96b3133ef)
2023-10-31 04:06:24 +00:00
zeertzjq
88f0179834
Merge pull request #25821 from neovim/backport-25820-to-release-0.9
[Backport release-0.9] fix(terminal): avoid Insert mode in Terminal buffer
2023-10-29 09:44:15 +08:00
zeertzjq
faa0b1028a fix(terminal): avoid Insert mode in Terminal buffer
(cherry picked from commit 9a73cac99c)
2023-10-29 01:32:22 +00:00
zeertzjq
f9c85cd913
Merge pull request #25772 from zeertzjq/backport
Backport to release-0.9
2023-10-25 10:27:11 +08:00
zeertzjq
bd2a15121d fix(terminal): assign channel to terminal earlier 2023-10-25 10:02:16 +08:00
zeertzjq
6e68b2e6bc
Merge pull request #25766 from neovim/backport-25763-to-release-0.9
[Backport release-0.9] fix(marks): handle switching buffer properly
2023-10-24 16:23:13 +08:00
zeertzjq
45b0e6d589 fix(marks): handle switching buffer properly
(cherry picked from commit 1f00390016)
2023-10-24 08:10:55 +00:00
zeertzjq
26c2c3c865
Merge pull request #25731 from neovim/backport-25498-to-release-0.9
[Backport release-0.9] ci(cirrus): don't run lua/help_spec
2023-10-21 07:33:29 +08:00
zeertzjq
08a9834859 ci(cirrus): don't run lua/help_spec
(cherry picked from commit 7a0ab4f333)
2023-10-20 23:22:06 +00:00
zeertzjq
b205336758
Merge pull request #25699 from neovim/backport-25698-to-release-0.9
[Backport release-0.9] fix(move): check the correct buffer
2023-10-18 10:48:58 +08:00