Shougo
c1652bdcb5
cmdheight=0: fix bugs part2 ( #19185 )
2022-07-31 13:13:19 +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
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
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
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
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
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
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
dundargoc
dadb0d6f01
refactor: enable -Wconversion warning for eval/funcs.c ( #19541 )
...
Work on https://github.com/neovim/neovim/issues/567
2022-07-27 23:37:39 +01:00
Lewis Russell
d27e4d657b
perf(api): optimize nvim_cmd ( #19513 )
...
Reduce the amount of string allocations and length calculations.
With the following benchmark:
```lua
total = 0
for _ = 1, loops do
local start = now()
vim.api.nvim_cmd({cmd = 'let', args = {'a', '=', '1'}}, {})
total = total + (now() - start)
end
print('nvim_cmd', total / loops)
```
```
hyperfine 'nvim --clean test.lua +source +q'
```
Before: 234.5ms
After: 173.8ms
2022-07-27 23:35:01 +01:00
dundargoc
48608a1f46
refactor: enable -Wconversion warning for regexp files ( #19521 )
...
Work on https://github.com/neovim/neovim/issues/567
2022-07-28 06:08:20 +08:00
zeertzjq
e0c433833f
refactor: fix clang and PVS warnings ( #19532 )
2022-07-28 06:05:33 +08:00
zeertzjq
7d9e68669c
vim-patch:9.0.0092: plugins cannot change v:completed_item ( #19542 )
...
Problem: Plugins cannot change v:completed_item.
Solution: Make v:completed_item writeable. (Shougo Matsushita,
closes vim/vim#10801 )
61021aa318
2022-07-28 05:19:38 +08:00
bfredl
b6b9f46041
Merge pull request #19525 from dundargoc/refactor/conversion-search
...
refactor: enable -Wconversion warning for search.c
2022-07-27 19:07:45 +02:00
bfredl
18755c6b89
Merge pull request #19516 from dundargoc/refactor/conversion-mbyte
...
refactor: enable -Wconversion warning for mbyte.c
2022-07-27 19:00:40 +02:00
Christian Clason
4c3104819b
vim-patch:9.0.0093: sway config files are recognized as i3config ( #19545 )
...
Problem: Sway config files are recognized as i3config.
Solution: Recognize swayconfig separately. (James Eapen, closes vim/vim#10672 )
7abd1c6d8e
2022-07-27 18:11:59 +02:00
Gregory Anders
9b447c7ce5
vim-patch:9.0.0088: pattern for detecting bitbake files is not sufficient ( #19547 )
...
Problem: Pattern for detecting bitbake files is not sufficient.
Solution: Adjust the pattern. (Gregory Anders, closes vim/vim#10743 )
30e212dac1
2022-07-27 10:06:09 -06:00
Dundar Goc
3a40d4b759
refactor: enable -Wconversion warning for search.c
...
Work on https://github.com/neovim/neovim/issues/567
2022-07-27 16:51:25 +02:00
zeertzjq
f57432af4d
vim-patch:9.0.0090: no error when assigning bool to a string option ( #19539 )
...
Problem: No error when assigning bool to a string option with setwinvar().
Solution: Give an error (closes vim/vim#10766 )
28f84e17b0
2022-07-27 20:59:43 +08:00
Dundar Goc
335b49e129
refactor: enable -Wconversion warning for mbyte.c
...
Work on https://github.com/neovim/neovim/issues/567
2022-07-27 13:14:33 +02:00
zeertzjq
bbad7371db
vim-patch:8.2.4625: old Coverity warning for resource leak
...
Problem: Old Coverity warning for resource leak.
Solution: Call FreeWild() if expanding matches did not fail.
90da27b927
2022-07-27 12:00:56 +08:00
zeertzjq
f586131e57
vim-patch:8.2.4623: Coverity warns for using uninitialized field
...
Problem: Coverity warns for using uninitialized field.
Solution: Initialize he field to zero.
03a297c63f
Also only initialize used fields in f_fullcommand().
2022-07-27 12:00:52 +08:00
zeertzjq
79872f3770
fix(options): properly free string options ( #19510 )
2022-07-27 07:26:32 +08:00
zeertzjq
890d4023cd
vim-patch:9.0.0081: command line completion of user command may have duplicates ( #19529 )
...
Problem: Command line completion of user command may have duplicates.
(Dani Dickstein)
Solution: Skip global user command if an identical buffer-local one is
defined. (closes vim/vim#10797 )
c2842adfb2
2022-07-27 07:25:47 +08:00
zeertzjq
fc55f8263c
vim-patch:9.0.0086: tabline is not redrawn when entering command line
...
Problem: Tabline is not redrawn when entering command line.
Solution: Set "redraw_tabline". (closes vim/vim#10771 )
6791adca53
2022-07-27 06:32:40 +08:00
zeertzjq
0c0a2e4e52
vim-patch:9.0.0083: ModeChanged event not triggered when leaving cmdline window
...
Problem: ModeChanged event not triggered when leaving the cmdline window.
Solution: Call may_trigger_modechanged(). (closes vim/vim#10791 )
c9e8fd6fc7
Code is already present in Nvim. Add some other related missing changes.
2022-07-27 06:23:47 +08:00
zeertzjq
9f1dc1466e
vim-patch:9.0.0082: cannot interrupt global command from command line
...
Problem: Cannot interrupt global command from command line.
Solution: Reset got_int in another place. (closes vim/vim#10739 )
3cfae39b08
2022-07-27 06:19:43 +08:00
zeertzjq
45e2bbae83
vim-patch:9.0.0051: using CTRL-C wih :append may hang Vim
...
Problem: Using CTRL-C wih :append may hang Vim.
Solution: Reset got_int. (closes vim/vim#10729 , closes vim/vim#10728 )
f754fe6a3d
2022-07-27 06:19:43 +08:00
zeertzjq
289256337a
Merge pull request #19523 from ii14/vim-9.0.0085
...
vim-patch:9.0.0085: ":write" fails after ":file name" and the ":edit"
2022-07-27 05:58:27 +08:00
Christian Clason
7e939ddb87
vim-patch:9.0.0084: using "terraform" filetype for .tfvars file is bad ( #19526 )
...
Problem: Using "terraform" filetype for .tfvars file is bad.
Solution: use "terraform-vars", so that different completion and other
mechanisms can be used. (Radek Simko, closes vim/vim#10755 )
15b87b6610
2022-07-26 23:08:48 +02:00
ii14
4225e6ee46
vim-patch:9.0.0085: ":write" fails after ":file name" and the ":edit"
...
Problem: ":write" fails after ":file name" and the ":edit".
Solution: Reset BF_NOTEDITED when using ":edit". (closes vim/vim#10790 )
1f0dc5e84f
2022-07-26 20:57:57 +02:00
Christian Clason
2a9c9371bc
vim-patch:9.0.0073: too many files recognized as bsdl ( #19504 )
...
Problem: Too many files recognized as bsdl.
Solution: Use pattern "*.bsd" instead of "*bsd". (Martin Tournoij,
closes vim/vim#10783 )
1b67f07f76
2022-07-26 14:16:46 +02:00
zeertzjq
27116a0159
vim-patch:9.0.0076: no test for what patch 8.1.1424 fixes
...
Problem: No test for what patch 8.1.1424 fixes.
Solution: Add a test. (closes vim/vim#10789 )
92a1678d48
2022-07-26 19:37:17 +08:00
zeertzjq
ee8606d31f
vim-patch:8.1.1424: crash when popup menu is deleted while waiting for char
...
Problem: Crash when popup menu is deleted while waiting for char.
Solution: Bail out when pum_array was cleared.
5c3fb04623
2022-07-26 19:36:24 +08:00