zeertzjq
083865071b
vim-patch:8.2.0807: cannot easily restore a mapping
...
Problem: Cannot easily restore a mapping.
Solution: Add mapset().
4c9243f9fb
Use MapArgument to reduce number of arguments of map_add().
N/A patches for version.c:
vim-patch:8.2.0809: build failure with small features
Problem: Build failure with small features. (Tony Mechelynck)
Solution: Move "expr" inside #ifdef.
5a80f8ad5d
2022-08-01 21:54:18 +08:00
ii14
db6e93c48d
feat(api): add replace_keycodes to nvim_set_keymap ( #19598 )
2022-08-01 21:35:08 +08:00
LaurenceWarne
9f5d5aa3da
Use Strings instead of Tables in vim.filetype.matchregex Doc ( #19604 )
...
docs: use strings instead of tables in vim.filetype.matchregex doc
2022-08-01 06:45:43 -06:00
Gustavo Sampaio
ece0850b73
fix(session): respect sessionoptions=terminal #19497
...
fixes #13078
Co-authored-by: Yuta Katayama <8683947+yutkat@users.noreply.github.com>
2022-08-01 05:13:46 -07:00
Lewis Russell
bcb4186cf6
refactor: replace_makeprg ( #19570 )
2022-08-01 12:02:53 +01:00
zeertzjq
8952def50a
Merge pull request #19595 from zeertzjq/vim-9.0.0124
...
vim-patch:9.0.0124: code has more indent than needed
2022-08-01 07:22:24 +08:00
zeertzjq
975a273125
test(old): unskip test that already passes
2022-08-01 06:54:35 +08:00
zeertzjq
c9ca90229b
vim-patch:9.0.0124: code has more indent than needed
...
Problem: Code has more indent than needed.
Solution: Use continue and return statements. (closes vim/vim#10824 )
101d57b34b
2022-08-01 06:18:52 +08:00
bfredl
68ec497d52
Merge pull request #19437 from dundargoc/refactor/char_u-to-char
...
refactor: replace char_u with char
2022-07-31 15:55:01 +02:00
Munif Tanjim
86110ec933
fix(highlight): add missing 'nocombine' to nvim_get_hl_* apis ( #19586 )
2022-07-31 13:38:00 +02:00
zeertzjq
380417c1dd
Merge pull request #19587 from Shougo/vim-9.0.0114
...
vim-patch:9.0.{0114,0115,0118}
2022-07-31 19:13:45 +08:00
zeertzjq
2c522854c7
vim-patch:9.0.0118: no test for what patch 9.0.0155 fixes
...
Problem: No test for what patch 9.0.0155 fixes.
Solution: Add a test. Fix typos. (closes vim/vim#10822 )
750209459c
2022-07-31 18:51:06 +08:00
Shougo Matsushita
63244f68e7
vim-patch:9.0.0115: when 'cmdheight' is zero pressing ':' may scroll a window
...
Problem: When 'cmdheight' is zero pressing ':' may scroll a window.
Solution: Add the made_cmdheight_nonzero flag and set 'scrolloff' to zero.
6747cf1671
2022-07-31 17:15:36 +08:00
Shougo Matsushita
81a1d26c3e
vim-patch:9.0.0114: the command line takes up space even when not used
...
Problem: The command line takes up space even when not used.
Solution: Allow for 'cmdheight' to be set to zero. (Shougo Matsushita,
closes vim/vim#10675 , closes vim/vim#940 )
f39cfb7262
Omit win_redr_ruler() change: winbar may still need redraw.
Omit win_update() changes: Nvim doesn't use `Rows` there.
Omit redraw_asap(): removed.
2022-07-31 17:15:36 +08:00
dundargoc
abc087f4c6
docs: fix typos ( #19024 )
...
Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Co-authored-by: Valery Viktorovsky <viktorovsky@gmail.com>
2022-07-31 16:46:38 +08:00
Shougo
c1652bdcb5
cmdheight=0: fix bugs part2 ( #19185 )
2022-07-31 13:13:19 +08:00
zeertzjq
7f4c50f8c4
Merge pull request #19582 from clason/vim-9.0.0111
...
vim-patch:9.0.0111: "nocombine" is missing from synIDattr()
2022-07-31 09:19:10 +08:00
zeertzjq
0ae94a128f
test: rewrite Test_missing_attr() in Lua
2022-07-31 08:51:20 +08:00
Dundar Goc
824a729628
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-07-31 00:52:59 +02:00
Christian Clason
29d5ca7d66
vim-patch:9.0.0111: "nocombine" is missing from synIDattr()
...
Problem: "nocombine" is missing from synIDattr().
Solution: Add "nocombine". (Munif Tanjim, closes vim/vim#10816 )
de78632c41
2022-07-31 06:25:57 +08:00
zeertzjq
9511faa819
vim-patch:9.0.0109: writing over the end of a buffer on stack ( #19581 )
...
Problem: Writing over the end of a buffer on stack when making list of
spell suggestions.
Solution: Make sure suggested word is not too long. (closes vim/vim#10812 )
1eead4cf1d
2022-07-31 05:48:24 +08:00
bfredl
fc5ed5b672
Merge pull request #19524 from dundargoc/refactor/conversion-screen
...
refactor: enable -Wconversion warning for screen.c
2022-07-30 22:53:51 +02:00
Dundar Goc
aa9ba05d70
refactor: enable -Wconversion warning for screen.c
...
Closes https://github.com/neovim/neovim/issues/567
2022-07-30 17:15:27 +02:00
Christian Clason
6237ac8402
vim-patch:2ecbe53f452e ( #19577 )
...
Update runtime files
2ecbe53f45
2022-07-30 15:48:32 +02:00
zeertzjq
d36d9be8ff
fix(terminal): avoid reading over the end of cell.chars ( #19580 )
2022-07-30 21:40:30 +08:00
dundargoc
c34d72bf7c
refactor: enable -Wconversion warning for spell.c ( #19538 )
...
Work on https://github.com/neovim/neovim/issues/567
2022-07-30 20:59:34 +08:00
zeertzjq
e59bc078de
fix(screen): check for col instead of vcol when drawing fold ( #19572 )
2022-07-29 21:47:21 +08:00
zeertzjq
02efdb4d58
refactor: fix clang and PVS warnings ( #19569 )
...
The last commit didn't actually disable V1028 because of a typo.
Fix the typo so it is actually disabled.
2022-07-29 14:44:18 +08:00
zeertzjq
0b8bade493
build(pvscheck): disable PVS/V1028 ( #19553 )
...
Most casts where PVS warns for V1028 aren't added to prevent overflows
in the first place, but to avoid other warnings, like printf argument or
-Wconversion warnings. PVS/V1028 is more annoying than useful.
2022-07-29 10:32:00 +08:00
dundargoc
1ebe7cd160
refactor: enable -Wconversion warning for syntax.c ( #19533 )
...
Work on https://github.com/neovim/neovim/issues/567
2022-07-29 10:05:29 +08:00
zeertzjq
88ed33230a
vim-patch:9.0.0101: invalid memory access in diff mode with "dp" and undo ( #19568 )
...
Problem: Invalid memory access in diff mode with "dp" and undo.
Solution: Make sure the line number does not go below one.
4e677b9c40
2022-07-29 07:31:54 +08:00
zeertzjq
352a177dae
vim-patch:9.0.0026: accessing freed memory with diff put ( #19564 )
...
Problem: Accessing freed memory with diff put.
Solution: Bail out when diff pointer is no longer valid.
c5274dd122
2022-07-29 06:53:32 +08:00
Mathias Fußenegger
b25abbf4b8
docs(lsp): use direct link to formattingOptions in format docs ( #19558 )
...
Also changes `@see` to `See` to avoid the break to a dedicated "See
also" block in the generated vimdoc
2022-07-28 19:41:30 +02:00
Mathias Fußenegger
98915f88b2
feat(lsp): add range option to code_action; deprecate range_code_action ( #19551 )
...
`code_action` gained extra functions (`filter` and `apply`) which
`range_code_action` didn't have.
To close this gap, this adds a `range` option to `code_action` and
deprecates `range_code_action`.
The option defaults to the current selection if in visual mode.
This allows users to setup a mapping like `vim.keymap.set({'v', 'n'},
'<a-CR>', vim.lsp.buf.code_action)`
`range_code_action` used to use the `<` and `>` markers to get the
_last_ selection which required using a `<Esc><Cmd>lua
vim.lsp.buf.range_code_action()<CR>` (note the `<ESC>`) mapping.
2022-07-28 19:19:07 +02:00
Christian Clason
468b1a689a
build(deps): bump LuaJIT to HEAD - a7d026548 ( #19565 )
2022-07-28 18:02:26 +02:00
Thomas Vigouroux
161efc9ea4
Merge pull request #19486 from dundargoc/refactor/conversion
...
refactor: enable -Wconversion warning for lua/treesitter.c
2022-07-28 14:31:26 +02:00
zeertzjq
f254fc67a5
vim-patch:9.0.0099: scrollback can be wrong after redrawing the command line ( #19562 )
...
Problem: Scrollback can be wrong after redrawing the command line.
Solution: Clear unfinished scrollback when redrawing. (closes vim/vim#10807 )
46af7bc08d
2022-07-28 20:07:32 +08:00
zeertzjq
9cb8b5f8db
vim-patch:9.0.0097: long quickfix line is truncated for :clist ( #19561 )
...
Problem: Long quickfix line is truncated for :clist.
Solution: Allocate a buffer if needed.
5f30e26f69
2022-07-28 19:49:18 +08:00
dundargoc
b4e12bfa00
refactor: enable -Wconversion warning for spellfile.c ( #19527 )
...
Work on https://github.com/neovim/neovim/issues/567
2022-07-28 18:49:46 +08:00
Dundar Goc
7304b7eee3
refactor: enable -Wconversion warning for lua/treesitter.c
...
Work on https://github.com/neovim/neovim/issues/567
2022-07-28 12:13:06 +02:00
Christian Clason
b971547c54
build(deps): bump LuaJIT to HEAD - e1339aed3 ( #19536 )
2022-07-28 09:18:22 +02:00
zeertzjq
fe254fb7e7
Merge pull request #19556 from zeertzjq/vim-9.0.0061
...
vim-patch:9.0.{0061,partial:0077,0094}
2022-07-28 12:22:00 +08:00
zeertzjq
0134a2cb3e
vim-patch:9.0.0094: cursor restored unexpected with nested autocommand
...
Problem: Cursor restored unexpected with nested autocommand.
Solution: Do not restore the cursor when it was moved intentionally.
(closes vim/vim#10780 )
3d6ee8bda0
2022-07-28 11:40:35 +08:00
zeertzjq
394d65494a
vim-patch:partial:9.0.0077: wrong restored cursor position when switching window in autocmd
...
Problem: When switching window in autocmd the restored cursor position may
be wrong.
Solution: Do not restore the cursor if it was not set. (closes vim/vim#10775 )
b03950fafa
This patch cannot be fully ported because it depends on patch 8.2.3518.
2022-07-28 11:38:02 +08:00
zeertzjq
8e67af1b20
vim-patch:9.0.0061: ml_get error with nested autocommand
...
Problem: ml_get error with nested autocommand.
Solution: Also check line numbers for a nested autocommand. (closes vim/vim#10761 )
5fa9f23a63
2022-07-28 11:38:02 +08:00
zeertzjq
bdbf843031
vim-patch:8.2.3912: the ins_complete() function is much too long ( #19555 )
...
Problem: The ins_complete() function is much too long.
Solution: Split it up into multiple functions. (Yegappan Lakshmanan,
closes vim/vim#9414 )
bf7ff61af4
2022-07-28 11:35:13 +08:00
zeertzjq
f1c01e5f94
Merge pull request #19554 from zeertzjq/vim-9.0.0095
...
vim-patch:9.0.{0095,0096}: remove dead code
2022-07-28 07:17:11 +08:00
zeertzjq
721ea8fab2
vim-patch:9.0.0096: flag "new_value_alloced" is always true
...
Problem: Flag "new_value_alloced" is always true.
Solution: Remove "new_value_alloced". (closes vim/vim#10792 )
f6782732ab
2022-07-28 06:48:36 +08:00
zeertzjq
e6b7f70294
vim-patch:9.0.0095: conditions are always true
...
Problem: Conditions are always true.
Solution: Remove useless conditions. (closes vim/vim#10802 )
122dea7007
2022-07-28 06:45:22 +08:00
dundargoc
e0eebe3087
refactor: enable -Wconversion warning for window.c ( #19537 )
...
Work on https://github.com/neovim/neovim/issues/567
2022-07-27 23:39:52 +01:00