zeertzjq
3dda52d860
vim-patch:8.2.3796: the funcexe_T struct members are not named consistently ( #20214 )
...
Problem: The funcexe_T struct members are not named consistently.
Solution: Prefix "fe_" to all the members.
851f86b951
Omit fe_check_type: always NULL in legacy Vim script.
2022-09-16 17:31:42 +08:00
notomo
754822a066
fix(lua): free vim.ui_attach callback before lua close ( #20205 )
2022-09-16 11:06:37 +02:00
bfredl
0c0071548b
Merge pull request #20213 from bfredl/redisplay
...
fix(messages): do not crash on cmdheight=0 and g< redisplay
2022-09-16 11:04:04 +02:00
zeertzjq
b98de0e0e5
vim-patch:8.2.0067: ERROR_UNKNOWN clashes on some systems ( #20212 )
...
Problem: ERROR_UNKNOWN clashes on some systems.
Solution: Rename ERROR_ to FCERR_. (Ola Söder, closes vim/vim#5415 )
ef140544f6
Remove ERROR_BOTH which was removed from Vim in patch 7.4.1582.
2022-09-16 16:37:37 +08:00
bfredl
b616458af9
fix(messages): do not crash on cmdheight=0 and g< redisplay
...
fixes #20153
2022-09-16 10:33:12 +02:00
bfredl
0b7a3c173c
Merge pull request #20188 from bfredl/zerocmdline
...
feat(ui): use msg_grid based implementation for cmdheight=0
2022-09-16 10:07:50 +02:00
kylo252
0f93aa12fd
docs(autocmds): re-add buffer param to docstring ( #20204 )
2022-09-16 09:18:42 +02:00
bfredl
708bd68651
feat(ui): use msg_grid based implementation for cmdheight=0
2022-09-15 12:13:43 +02:00
zeertzjq
89b9eab638
test(old): remove OpenBSD skip ( #20201 )
2022-09-15 11:36:13 +08:00
Christian Clason
bf6de51f55
fix(help): add --clean
to -h
( #20171 )
...
update man file to match
2022-09-14 11:11:17 +02:00
bfredl
8b0b0a5c32
Merge pull request #18705 from dundargoc/fix/require-missing-module-in-autocmd
...
fix: assertion failure when requiring missing module in autocmd
2022-09-14 10:55:25 +02:00
Famiu Haque
bd4eca1146
refactor: move definitions from typval.h
to typval_defs.h
( #20194 )
...
Taken from #20187 .
2022-09-14 13:01:39 +08:00
bfredl
1e5daed676
Merge pull request #20164 from bfredl/luanull
...
fix(lua): make vim.str_utfindex and vim.str_byteindex handle NUL bytes
2022-09-13 23:17:11 +02:00
bfredl
25e4af439f
fix(lua): make vim.str_utfindex and vim.str_byteindex handle NUL bytes
...
fixes #16290
2022-09-13 22:50:22 +02:00
zeertzjq
f19e91acd8
vim-patch:9.0.0457: substitute prompt does not highlight an empty match ( #20186 )
...
Problem: Substitute prompt does not highlight an empty match.
Solution: Highlight at least one character.
a04f457a6c
2022-09-13 22:08:01 +08:00
zeertzjq
ec1f153ddc
vim-patch:9.0.0456: function called at debug prompt is also debugged ( #20185 )
...
Problem: Function called at debug prompt is also debugged.
Solution: Reset the debug level while entering the debug command.
(closes vim/vim#11118 )
b1842de5ca
2022-09-13 21:02:11 +08:00
Lewis Russell
8eabbacf22
refactor(memline): resolve clint errors
...
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-09-13 10:35:52 +01:00
zeertzjq
907fc8ac37
vim-patch:9.0.0449: there is no easy way to translate a key code into a string ( #20168 )
...
Problem: There is no easy way to translate a string with a key code into a
readable string.
Solution: Add the keytrans() function. (closes vim/vim#11114 )
cdc839353f
vim-patch:7b2d87220c6c
Add missing part of patch
7b2d87220c
2022-09-13 06:23:33 +08:00
bfredl
f6232e160b
Merge pull request #20077 from dundargoc/refactor/char_u/11
...
refactor: replace char_u with char 11: remove `STRLEN` part 1
2022-09-12 21:50:31 +02:00
zeertzjq
5bc0964b97
vim-patch:9.0.0299: error messages for setcmdline() could be better ( #20169 )
...
Problem: Error messages for setcmdline() could be better.
Solution: Use more specific error messages. (Yegappan Lakshmanan,
closes vim/vim#10995 )
25f1e55562
Cherry-pick tv_check_for_opt_number_arg() from Vim.
2022-09-12 21:47:35 +08:00
Christian Clason
afe01842ef
vim-patch:9.0.0448: SubRip files are not recognized ( #20167 )
...
Problem: SubRip files are not recognized.
Solution: Add a pattern for SubRip. (closes vim/vim#11113 )
5a4eb55122
2022-09-12 15:12:39 +02:00
zeertzjq
a48e42a29d
vim-patch:8.2.4671: 'wildignorecase' is sometimes not used for glob() ( #20165 )
...
Problem: 'wildignorecase' is sometimes not used for glob().
Solution: Also use 'wildignorecase' when there are no wildcards.
(closes vim/vim#10066 , closes vim/vim#8350 )
a3157a476b
2022-09-12 19:09:23 +08:00
zeertzjq
245ac6f263
vim-patch:8.2.5034: there is no way to get the byte index from a virtual column
...
Problem: There is no way to get the byte index from a virtual column.
Solution: Add virtcol2col(). (Yegappan Lakshmanan, closes vim/vim#10477 ,
closes vim/vim#10098 )
5a6ec10cc8
Cherry-pick tv_check_for_number_arg() from Vim.
Cherry-pick pathshorten() doc change.
2022-09-12 17:28:07 +08:00
zeertzjq
4448fa88ec
refactor: move f_screenpos() to move.c
2022-09-12 17:20:21 +08:00
zeertzjq
49aa9e17fa
vim-patch:8.2.2664: Vim9: not enough function arguments checked for string
...
Problem: Vim9: not enough function arguments checked for string.
Solution: Check in balloon functions. Refactor function arguments.
32105ae88f
Cherry-pick removal of useless check from patch 8.2.3840.
vim-patch:8.2.3083: crash when passing null string to charclass()
Problem: Crash when passing null string to charclass().
Solution: Bail out when string pointer is NULL. (Christian Brabandt,
closes vim/vim#8498 , closes vim/vim#8260 )
72463f883c
2022-09-12 14:56:49 +08:00
zeertzjq
38059b4f31
vim-patch:8.2.2646: Vim9: error for not using string doesn't mention argument
...
Problem: Vim9: error for not using string doesn't mention argument.
Solution: Add argument number.
f28f2ac425
2022-09-12 14:56:42 +08:00
Christian Clason
f98cff9575
vim-patch:9.0.0443: blueprint files are not recognized ( #20155 )
...
Problem: Blueprint files are not recognized.
Solution: Add a pattern for blueprint files. (Gabriele Musco, closes vim/vim#11107 )
cce82a55b8
2022-09-11 16:07:54 +02:00
Dundar Göc
3ff46544c9
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-09-11 13:28:59 +02:00
bfredl
4638fcf4fb
Merge pull request #20068 from dundargoc/refactor/char_u/10
...
refactor: replace char_u with char 10: remove `FNAMECMP`, `FNAMENCMP` and `STRLCAT`
2022-09-10 14:33:43 +02:00
Christian Clason
40f9f479b7
vim-patch:9.0.0434: gitignore files are not recognized ( #20143 )
...
Problem: gitignore files are not recognized.
Solution: Add patterns for the gitignore filetype. (closes vim/vim#11102 )
9ba2786f15
2022-09-10 13:30:54 +02:00
Dundar Göc
684bc749ef
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-09-10 11:17:40 +02:00
Dundar Göc
c5322e752e
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-09-09 21:02:42 +02:00
Christian Clason
9b0e1256e2
vim-patch:9.0.0427: Drupal theme files are not recognized ( #20138 )
...
Problem: Drupal theme files are not recognized.
Solution: Use php filetype for Drupl theme files. Remove trailing spaces.
(Rodrigo Aguilera, closes vim/vim#11096 )
8995c4cd4e
2022-09-09 18:48:12 +02:00
Christian Clason
ad2d6a624b
vim-patch:9.0.0424: gitattributes files are not recognized ( #20134 )
...
Problem: gitattributes files are not recognized.
Solution: Add patterns to match gitattributes files. (closes vim/vim#11085 )
7d56cfc861
2022-09-09 17:53:15 +02:00
Christian Clason
08602ec1ab
vim-patch:9.0.0417: Jsonnet files are not recognized ( #20119 )
...
Problem: Jsonnet files are not recognized.
Solution: Add a pattern for Jsonnet files. (Cezary Drożak, closes vim/vim#11073 ,
closes vim/vim#11081 )
2a4c885d54
2022-09-08 16:06:00 +02:00
dundargoc
42aeb5c5b1
build: remove unnecessary policy related code
...
Having cmake version 3.10 as the required minimum version ensures these
are set to new by default.
2022-09-08 14:15:13 +02:00
zeertzjq
06f9da547c
vim-patch:9.0.0412: compiler warning for unused argument
...
Problem: Compiler warning for unused argument.
Solution: Add UNUSED.
e5a420fb33
2022-09-08 08:54:14 +08:00
zeertzjq
80a566b55f
vim-patch:9.0.0410: struct member cts_lnum is unused
...
Problem: Struct member cts_lnum is unused.
Solution: Delete it.
d7633114af
2022-09-08 08:52:10 +08:00
ii14
4a67f9d386
vim-patch:9.0.0409: #{g:x} was seen as a curly-braces expression
...
Problem: #{g:x} was seen as a curly-braces expression.
Solution: Do never see #{} as a curly-braces expression. (closes vim/vim#11075 )
7c7e1e9b98
2022-09-08 08:17:30 +08:00
zeertzjq
93a0c2dd63
vim-patch:8.2.3702: first key in dict is seen as curly expression and fails
...
Problem: First key in dict is seen as curly expression and fails.
Solution: Ignore failure of curly expression. (closes vim/vim#9247 )
98cb90ef86
2022-09-08 08:15:55 +08:00
luukvbaal
ead524656d
vim-patch:9.0.0403: 'equalalways' may be off when 'laststatus' is zero ( #20109 )
...
Problem: 'equalalways' may be off when 'laststatus' is zero.
Solution: call last_status() before win_equal(). (Luuk van Baal,
closes https://github.com/vim/vim/pull/11070 )
fd7e60a33d
2022-09-07 18:08:00 +02:00
ii14
4dc4cf3467
fix(options): mark winhighlight
as list style ( #19477 )
...
Also add missing fcs, lcs and winhighlight to list of key-value options for `vim.opt`.
Co-authored-by: ii14 <ii14@users.noreply.github.com >
2022-09-07 17:59:27 +02:00
Christian Clason
9d1d3a6707
vim-patch:9.0.0402: javascript module files are not recoginzed ( #20108 )
...
Problem: Javascript module files are not recoginzed.
Solution: Recognize "*.jsm" files as Javascript. (Brett Holman,
closes vim/vim#11069 )
bb6c4073e7
2022-09-07 15:55:39 +02:00
bfredl
ff9d2b17fb
Merge pull request #20100 from bfredl/luafunc
...
refactor(typval): change FC_CFUNC abstraction into FC_LUAREF
2022-09-07 09:08:05 +02:00
bfredl
db9b8b08e7
refactor(typval): change FC_CFUNC abstraction into FC_LUAREF
...
"cfuncs" was only ever used to wrap luarefs. As vim8script is
finished and will not be developed further, support for "cfuncs"
for other usecases are not planned. This abstraction was immediately
broken anyway in order to get luarefs out of userfuncs again.
Even if a new kind of userfunc needs to be invented in the future,
likely just extending the FC_... flag union directy, instead of
invoking unnecessary heap object and c function pointer indirection,
will be a more straightforward design pattern.
2022-09-07 00:52:58 +02:00
Christian Clason
694ac26946
Merge pull request #17329 from cryptomilk/asn-vterm-0-2
...
build(deps): bump libvterm to 0.3-RC1
2022-09-06 22:41:37 +02:00
Andreas Schneider
2aeb8d976f
feat(term): add support for libvterm >= 0.2
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
2022-09-06 21:19:55 +02:00
Dundar Göc
73207cae61
refactor: replace char_u with char
...
Work on https://github.com/neovim/neovim/issues/459
2022-09-06 16:44:37 +02:00
Shougo
87e037e26c
fix(cmdheight=0): various issues part3 #19816
...
And fixed in https://github.com/neovim/neovim/pull/19801 regression.
Fix #19834
Fix #19184
2022-09-06 07:33:25 -07:00
dundargoc
12afc344de
refactor: migrate comment style 2 #20080
2022-09-06 07:23:00 -07:00