zeertzjq
0c6ad03c3f
fix(ui): do not call showmode() when setting window height ( #18969 )
2022-06-15 19:41:58 +08:00
Christian Clason
504d7decbd
vim-patch:8c1b8cb2e0b5 ( #18966 )
...
Update runtime files
https://github.com/vim/vim/commit/8c1b8cb2e0b52d0853f85c2096a2f22dbc57a788
2022-06-15 09:20:32 +02:00
zeertzjq
1493efdc14
test: correct check for v:errmsg in inccommand test ( #18968 )
...
After the first separator is typed v:errmsg can be set.
Check for its value before typing the first separator.
2022-06-15 10:18:43 +08:00
6de7f32d52
docs: fix typos ( #18866 )
...
docs: fix typos and similarly insignificant changes
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
Co-authored-by: smjonas <jonas.strittmatter@gmx.de >
Co-authored-by: kanreki <32443233+kanreki@users.noreply.github.com >
2022-06-15 08:49:54 +08:00
zeertzjq
8ba64dd3ad
Merge pull request #18947 from zeertzjq/vim-8.2.1897
...
vim-patch:8.2.{1897,1898,5088}
2022-06-14 21:57:08 +08:00
bfredl
2a2fb8be74
Merge pull request #18880 from bfredl/arena
...
perf(memory): use an arena for RPC decoding
2022-06-14 15:20:37 +02:00
zeertzjq
0a0cda9528
vim-patch:8.2.5088: value of cmod_verbose is a bit complicated to use
...
Problem: Value of cmod_verbose is a bit complicated to use.
Solution: Use zero for not set, value + 1 when set. (closes vim/vim#10564 )
https://github.com/vim/vim/commit/cd7496382efc9e6748326c6cda7f01003fa07063
Omit has_cmdmod(): only used for Vim9 script
2022-06-14 21:12:27 +08:00
zeertzjq
6130b4a84b
vim-patch:8.2.1898: command modifier parsing always uses global cmdmod
...
Problem: Command modifier parsing always uses global cmdmod.
Solution: Pass in cmdmod_T to use. Rename struct fields consistently.
https://github.com/vim/vim/commit/e10044015841711b989f9a898d427bcc1fdb4c32
2022-06-14 20:58:34 +08:00
zeertzjq
dad898b665
refactor(api): remove redundant fields of CmdParseInfo
2022-06-14 20:58:34 +08:00
zeertzjq
da41ca299f
vim-patch:8.2.1897: command modifiers are saved and set inconsistently
...
Problem: Command modifiers are saved and set inconsistently.
Solution: Separate parsing and applying command modifiers. Save values in
cmdmod_T.
https://github.com/vim/vim/commit/5661ed6c833e05467cab33cb9b1c535e7e5cc570
Cherry-pick: :0verbose fix from patch 8.2.4741
2022-06-14 20:58:34 +08:00
dundargoc
cd9e08cb94
refactor: enable -Wconversion warning for eval.c ( #18448 )
...
Work on https://github.com/neovim/neovim/issues/567
2022-06-14 20:57:06 +08:00
bfredl
3f5c647de9
perf(memory): use an arena for RPC decoding
...
drawback: tracing memory errors with ASAN is less accurate for arena
allocated memory.
Therefore, to start with it is being used for Object types around
serialization/deserialization exclusively. This is going to have
a large impact especially when TUI is refactored as a co-prosess
as all UI events will be serialized and deserialized by nvim itself.
2022-06-14 14:33:04 +02:00
Christian Clason
2f2022773f
vim-patch:6ba83ba9ee29 ( #18948 )
...
Update runtime files.
https://github.com/vim/vim/commit/6ba83ba9ee292f68aa0b218b3eef42db31c0b632
2022-06-14 08:52:04 +02:00
zeertzjq
619eb32c75
fix(inccommand): never preview if parsing command failed ( #18944 )
...
`errormsg` is not always set when parsing the command failed (e.g. when
the range contains invalid marks). Check the return value is better.
2022-06-14 10:55:04 +08:00
rhcher
7f8f8d6cb7
feat(lsp): sort codelens if multiple item per line ( #18951 )
2022-06-13 19:31:48 +02:00
zeertzjq
e13c36e312
vim-patch:8.2.0577: not all modifiers supported for :options ( #18952 )
...
Problem: Not all modifiers supported for :options.
Solution: Use all cmdmod.split flags. (closes vim/vim#4401 )
https://github.com/vim/vim/commit/7a1637f4c00ac3d0cbf894803ada1586a1717470
Cherry-pick Test_options_command() change from patch 8.2.0540
2022-06-13 22:04:39 +08:00
kylo252
837360868b
fix(tests): missing clear() #18927
...
This was caught in #18674 since it allows test isolation
2022-06-13 04:05:17 -07:00
Shougo
663cbe2620
feat: cmdheight=0 #16251
...
Fix https://github.com/neovim/neovim/issues/1004
Limitation: All outputs need hit-enter prompt.
Related:
https://github.com/neovim/neovim/pull/6732
https://github.com/neovim/neovim/pull/4382
2022-06-13 02:40:51 -07:00
bfredl
2f71d4708e
Merge pull request #18902 from bfredl/fulexit
...
fix(tests): check for EOF in requests to nvim properly
2022-06-13 11:23:40 +02:00
zeertzjq
a68f5fccb3
Merge pull request #18934 from zeertzjq/vim-8.2.5079
...
vim-patch:8.2.{5079,5081,5083}
2022-06-13 16:30:13 +08:00
bfredl
e3281d992e
fix(tests): check for EOF on exit of nvim properly
2022-06-13 10:15:44 +02:00
zeertzjq
e95f32a717
vim-patch:8.2.5083: autocmd test still fails on MS-Windows
...
Problem: Autocmd test still fails on MS-Windows.
Solution: Change backward to forward slashes.
https://github.com/vim/vim/commit/db77c49401145d76441fbb3d22a1d7d987681c13
2022-06-13 16:05:26 +08:00
zeertzjq
1c16e5bb11
vim-patch:8.2.5081: autocmd test fails on MS-Windows
...
Problem: Autocmd test fails on MS-Windows.
Solution: Set shellslash to get forward slashes.
https://github.com/vim/vim/commit/7c0d0c3c75151e716184397a41ff74ab0429db5a
2022-06-13 16:05:19 +08:00
zeertzjq
254454d0c5
vim-patch:8.2.5079: DirChanged autocommand may use freed memory
...
Problem: DirChanged autocommand may use freed memory. (Shane-XB Qian)
Solution: Free the memory later. (closes vim/vim#10555 )
https://github.com/vim/vim/commit/d8c9d32c8932e93008bfd4e8828ed42f4e9f8315
Code change is N/A as Nvim gets the full current directory again before
applying the autocommand, so this just ports the tests.
2022-06-13 16:05:02 +08:00
Justin M. Keyes
dd8b6094c0
build(lint): fix lintuncrustify #18945
...
Problem:
lintuncrustify doesn't actually do anything.
Solution:
- Fix the parameters.
- Fail correctly on nonzero result.
followup to #18940
2022-06-12 18:49:38 -07:00
Daniel Hahler
e420cd6c67
test: dismiss quit_more from Lua #11226
...
Add a test for what #16537 fixed.
2022-06-12 16:45:44 -07:00
zeertzjq
c665773897
Merge pull request #18931 from zeertzjq/regexp-num-escaped
...
fix(substitute): subtract number of backslashes later
2022-06-13 07:18:38 +08:00
dundargoc
3c7b91da10
build: remove CMAKE_CROSSCOMPILING code #18914
...
This is rarely, if ever, used and certainly not tested. It's likely this
isn't functional anymore.
2022-06-12 15:11:14 -07:00
Justin M. Keyes
f90174c98c
build(lint): fix luacheck not found #18940
...
Problem:
Since 6d57bb89c1 #18543 , luacheck is not found on some systems when
running the "lintlua" target.
Solution:
- Move the find_program() to the top-level CMakeLists.txt
- Define a def_cmd_target() function with fewer assumptions than the old
lint() function.
- Move "lintuncrustify" to src/nvim/CMakeLists.txt so it can reuse the
$LINT_NVIM_SOURCES already defined there.
- Make the lint targets _fatal_ by default. There is little reason for
the "lint" umbrella target defined in Makefile to exist if it's going
to ignore the absence of the actual linters.
- For now, keep the uncrustify call in a separate cmake script so that
it can be silenced (too noisy).
2022-06-12 15:08:01 -07:00
zeertzjq
429c40cce3
fix(buffer): disable buffer-updates before removing from window #18933
...
There can be other places that access window buffer info (e.g.
`tabpagebuflist()`), so checking `w_closing` in `win_findbuf()` doesn't
solve the crash in all cases, and may also cause Nvim's behavior to
diverge from Vim.
Fix #14998
2022-06-12 15:02:00 -07:00
bfredl
feba56af7d
Merge pull request #18936 from bfredl/apioption
...
refactor(api): reorganize code
2022-06-12 21:01:16 +02:00
Famiu Haque
2de0d67144
fix(inccommand): skip split window if not enough room #18937
...
Command preview now behaves like inccommand=nosplit when there's not
enough room for the preview window to be opened instead of aborting,
which is consistent with old behavior of 'inccommand'.
2022-06-12 10:59:04 -07:00
dundargoc
f4967828f9
feat(contrib): asan debugging script #18892
...
Opted to use a shell script because it's simpler to manipulate
environment variables than in makefiles.
2022-06-12 10:54:14 -07:00
bfredl
612944c586
refactor(api): update vimdoc
2022-06-12 19:45:39 +02:00
bfredl
0d63fafcda
refactor(api): move command related API to separate file
2022-06-12 19:45:39 +02:00
bfredl
a907d6f517
refactor(api): move extmark specific functions to api/extmark.c
2022-06-12 16:45:18 +02:00
bfredl
4a275e3291
refactor(api): move option code to own file
2022-06-12 16:09:42 +02:00
zeertzjq
8bc48273eb
vim-patch:8.2.5078: substitute test has a one second delay
...
Problem: Substitute test has a one second delay.
Solution: Use ":silent!". Add another test case. (closes vim/vim#10558 )
https://github.com/vim/vim/commit/3269efdf014dd3b6e60e330950d40a7cc5d13d3a
2022-06-12 20:42:30 +08:00
zeertzjq
41bb81a2df
fix(substitute): subtract number of backslashes later
2022-06-12 20:42:30 +08:00
bfredl
502f03fc06
Merge pull request #18919 from bfredl/multiattr
...
fix(messages): add color when showing nvim_echo in :messages history
2022-06-11 23:06:05 +02:00
bfredl
f4121c52b9
fix(messages): add color when showing nvim_echo in :messages history
2022-06-11 22:29:51 +02:00
bfredl
c87a5ebbc3
Merge pull request #18428 from bfredl/do_source
...
feat(api): nvim__get_runtime do_source
2022-06-11 11:32:23 +02:00
bfredl
e92fcdbab2
feat(api): nvim__get_runtime do_source
2022-06-11 10:25:59 +02:00
zeertzjq
2b539d6fdf
fix(inccommand): clear cmdpreview state if preview is not shown ( #18923 )
2022-06-11 13:04:19 +08:00
zeertzjq
2b252430aa
vim-patch:8.2.5076: unnecessary code ( #18922 )
...
Problem: Unnecessary code.
Solution: Remove code and replace with function call. (closes vim/vim#10552 )
https://github.com/vim/vim/commit/2e7cba347fc8b746add12aa5e0e9f6218a76c788
2022-06-11 07:00:56 +08:00
bfredl
673b3a780e
Merge pull request #18461 from dundargoc/refactor/change-linenr-to-int32
...
refactor: change type of linenr_T from long to int32_t
2022-06-10 19:28:47 +02:00
Dundar Goc
a732c253b7
refactor: change type of linenr_T from long to int32_t
...
The size of long varies depending on architecture, in contrast to the
MAXLNUM constant which sets the maximum allowable number of lines to
2^32-1. This discrepancy may lead to hard to detect bugs, for example
https://github.com/neovim/neovim/issues/18454 . Setting linenr_T to a
fix maximum size of 2^32-1 will prevent this type of errors in the
future.
Also change the variables `amount` and `amount_after` to be linenr_T
since they're referring to "the line number difference" between two
texts.
2022-06-10 16:16:41 +02:00
zeertzjq
e15d31b530
fix(input): fix macro recording with ALT and special key ( #18917 )
2022-06-10 17:13:57 +08:00
Christian Clason
6eaf10502c
vim-patch:partial:63f32603789d ( #18916 )
...
Update runtime files
https://github.com/vim/vim/commit/63f32603789d1a27c559fc440325955fd0b8b500
skip translations
skip user manual rewrite
2022-06-10 08:40:32 +02:00
Gregory Anders
58323b1fe2
feat(filetype): remove side effects from vim.filetype.match ( #18894 )
...
Many filetypes from filetype.vim set buffer-local variables, meaning
vim.filetype.match cannot be used without side effects. Instead of
setting these buffer-local variables in the filetype detection functions
themselves, have vim.filetype.match return an optional function value
that, when called, sets these variables. This allows vim.filetype.match
to work without side effects.
2022-06-09 13:12:36 -06:00