| Commit message (Collapse) | Author | Age |
... | |
| |/ |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|\| |
|
| |
| |
| |
| |
| | |
28dafe3ff const-ified the array without updating the regex.
[ci skip]
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Contains unfinished attempt to integrate IWYU (ref #549). To finish it different
job should be done, specifically:
- Instead of feeding IWYU with modified file a mirror source tree should be
created with the help of CMake which will contain modified sources. This
solves the problem with IWYU thinking that `*.generated.h` headers should be
included in place of `*` headers.
- Build IWYU as all other third-party utilities.
- Make modified sources avoid problems with `nvim/func_attr.h` includes and
various related tricks.
Current script may only be used for manual checks like this:
./scripts/check-includes.py \
--generated-includes-dir build/include \
--generated-includes-dir build/src/nvim/auto \
--file src/nvim/eval/typval.c \
-- -Isrc -Ibuild/include -Ibuild/src/nvim/auto \
-DINCLUDE_GENERATED_DECLARATIONS
(it is also somewhat fine with `--file src/nvim/eval/typval.h`). I have no idea
why (I mean, why developer think that these lines are needed, why they are
suggested is pretty obvious: because there is typedef which mentions them before
structs are defined), but for typval.h it reports, among other things, that it
should add lines
struct dictvar_S;
struct listitem_S;
struct listvar_S;
struct listwatch_S;
|
| |
| |
| |
| |
| | |
Now it checks functions also after every semicolon and closing figure brace,
possibly preceded by whitespaces (tabs and spaces). This should make messing
with declarations in macros not needed.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
Reasoning; currently INTERNAL_CALL is mostly used to determine whether it is
needed to deal with NL-used-as-NUL problem. This code is useful for nvim_… API
calls done from VimL, but not for API calls done from lua, yet lua needs to
supply something as channel_id.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
During testing found the following bugs:
1. msgpack-gen.lua script is completely unprepared for Float values either in
return type or in arguments. Specifically:
1. At the time of writing relevant code FLOAT_OBJ did not exist as well as
FLOATING_OBJ, but it would be used by msgpack-gen.lua should return type
be Float. I added FLOATING_OBJ macros later because did not know that
msgpack-gen.lua uses these _OBJ macros, otherwise it would be FLOAT_OBJ.
2. msgpack-gen.lua should use .data.floating in place of .data.float. But it
did not expect that .data subattribute may have name different from
lowercased type name.
2. vim_replace_termcodes returned its argument as-is if it receives an empty
string (as well as _vim_id*() functions did). But if something in returned
argument lives in an allocated memory such action will cause double free:
once when freeing arguments, then when freeing return value. It did not cause
problems yet because msgpack bindings return empty string as {NULL, 0} and
nothing was actually allocated.
3. New code in msgpack-gen.lua popped arguments in reversed order, making lua
bindings’ signatures be different from API ones.
|
|/
|
|
|
|
|
|
|
|
|
|
| |
No tests yet, no documentation update, no :lua* stuff, no vim module.
converter.c should also work with typval_T, not Object.
Known problem: luaeval("1", {}) results in
PANIC: unprotected error in call to Lua API (attempt to index a nil value)
Ref #3823
|
|
|
|
|
|
| |
Also:
- fix ignoring doc/tags file
- use 12 chars of hash instead of 7
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
It's important that users have a single, easy-to-remember place for
reading about the API. So this commit changes gen_api_vimdoc.py so that
the generated section is appended to api.txt instead of creating
a separate document.
Also remove the section numbering and ToC: it's a maintenance cost, and
it will be unnecessary when #5169 is integrated.
|
| |
|
|
|
|
|
|
|
| |
All patches up through 7.4.1974 have been merged and 7.4.1975-1979 are
pending in a PR.
[ci skip]
|
|\ |
|
| |
| |
| |
| | |
Allows eval/typval.h to #include message.h.
|
|/ |
|
|
|
|
|
|
|
| |
This ensures the downloaded Vim patch is preprocessed so unused material
isn't presented to the reviewer.
[ci skip]
|
|
|
|
|
|
|
| |
Problem: Setting 'cursorline' changes the curswant column. (Daniel Hahler)
Solution: Add the P_RWINONLY flag. (closes vim/vim#1297)
https://github.com/vim/vim/commit/a2477fd3490c1166522631eee53c57d34321086a
|
|
|
|
|
| |
runtime: Add underscore to {} helpSpecial syntax pattern
docs: Added generated api-funcs.txt
|
| |
|
|
|
|
|
|
|
| |
It's not atypical to have extra, non-"vim-patch" commits in a PR merging
a bigger or set of related patches from Vim. Rather than immediately
aborting, display the patch header to the user and let them decide
whether to continue reviewing.
|
| |
|
|
|
|
|
| |
Some .po files do not have UTF8 versions, leave those alone for now.
Also remove sjiscorr.c utility.
|
|
|
|
|
|
|
|
|
| |
grep 2.26 changed its behavior when redirecting its output to /dev/null
such that it exits as soon as one match is found. This causes sed to
get a SIGPIPE which, due to "set -o pipefail", falsely implies that the
patch is not applied.
Removing "set -o pipefail" preserves the good exit status from grep.
|
|
|
|
|
|
|
|
|
|
|
| |
Since data.integer is a different (larger) integer type than
data.{buffer,window,tabpage}, we cannot abuse the union by using
data.integer to access the value for all 4 types. Instead, remove the
{buffer,window,tabpage} members and always use the integer member.
In order to accomodate this, perform distinct validation and coercion
between the Integer type and Buffer/Window/Tabpage types in
object_to_vim, msgpack_rpc helpers, and gendispatch.lua.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
FEATURES:
0b5a7e4ad5ee #4432 API: external UIs can render custom popupmenu
c6ac4f84b163 #4934 API: call any API method from vimscript
31df051ed9a3 #4568 API: nvim_call_atomic(): multiple calls in a single request
b268ba353af4 #5424 API: nvim_win_get_number(), nvim_tabpage_get_number()
e7e2844d468d has("nvim-1.2.3") checks for a specific Nvim version
522b885a0db7 #5295, #5493 `:CheckHealth` checks tmux, terminfo, performance
719dae2e010c #5384 events: allow event processing in getchar()
f25797f86976 #5386 API: metadata: Nvim version & API level
22dfe6925d47 #5389 API: metadata: "since", "deprecated_since"
605e74327a40 Added QuickFixLine highlight group
CHANGES:
4af6ec746c82 #5253 perf: Disable clipboard in do_cmdline()
6e9f329d051c #5299 perf: Skip foldUpdate() in insert-mode.
9d4fcec7c6b6 #5426 perf: Do not auto-update folds for some foldmethods.
eeec0cab5848 #5419 tui: Default to normal-mode cursor shape.
FIXES:
e83845285cf3 #5436 tui: Fix "weird characters" / "bleeding termcodes"
10a54ad12e2d #5243 signal_init: Always unblock SIGCHLD.
bccb49bedb9b #5316 eval.c: Fix memory leak for detached pty job
626065d385c4 #5227 tchdir: New tab should inherit CWD.
cd321b7d0fb1 #5292 getcwd(): Return empty string if CWD is invalid.
6127eaef0534 shada: Fix non-writeable ShaDa directory handling
ca65514a241b #2789 system(): Respect shellxescape, shellxquote
2daf54ee8dd9 #4874 Restore vim-like tab dragging
0c536b5d8afe #5319 syntax.c: Support bg/fg special color-names.
3c53371b0ccb #4972 from justinmk/schedule-ui_refresh
68bcb32ec43e #4789 tui.c: Do not wait for tui loop on teardown.
c8b6ec2e6a85 #5409 v:count broken in command-line window
6bc3bcefc6ca #5461 fix emoji display
51937e1322de #5470 fix :terminal with :argadd, :argu
79d77da8a06b #5481 external UIs: opening multiple files from command-line
657ba62a84de #5501 rplugin: resolve paths in manifest file
6a6f188d2ac4 #5502 system('foo &', 'bar'): Show error, don't crash.
1ff162c0d99c #5515 os_nodetype: open fd with O_NONBLOCK
2a6c5bb0c4b0 #5450 modeline: Handle version number overflow.
0ade1bb7067d #5225 CI tests now run against Windows!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The API level is disconnected from the NVIM version. The API metadata
holds the current API level, and the lowest backwards-compatible level
supported by this instance.
Release 0.1.6 will be the first release reporting the Nvim version and
API level.
metadata['version'] = {
major: 0,
minor: 1,
patch: 6,
prerelease: true,
api_level: 1,
api_compatible: 0,
}
The API level may remain unchanged across Neovim releases if the API has
not changed.
When changing the API the CMake variable NVIM_API_PRERELEASE is set to
true, and NVIM_API_CURRENT/NVIM_API_COMPATIBILITY are incremented
accordingly.
The functional tests check the API table against fixtures of past
versions of Neovim. It compares all the functions in the old table with
the new one, it does ignore some metadata attributes that do not alter
the function signature or were removed since 0.1.5. Currently the only
fixture is 0.mpack, generated from Neovim 0.1.5 with nvim --api-info.
|
|
|
|
|
|
| |
Also include missing changes from:
https://github.com/vim/vim/commit/06d2d38ab7564e1f784b1058a4ef4580cd6d1810
https://github.com/vim/vim/commit/26852128a2b713ef49341a0c18daba928444e7eb
|
|\
| |
| | |
atomic multi request for async remote plugins
|
| |
| |
| |
| | |
remove unused response_id parameter of handle_nvim_... helpers
|
|/
|
|
|
| |
Remove max_fname_len check, which caused false successful lookups,
and was an optimization for a very rare case.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Let genunicodetables determine which files it needs from the unicode
directory. cmake just needs to pass the directory and destination file
to the script.
|
|
|
|
|
|
|
|
| |
Problem: Handling emoji characters as full width has problems with
backwards compatibility.
Solution: Only put characters in the 1f000 range in the emoji table.
https://github.com/vim/vim/commit/6a08454b93784c92296d4c08456401cbaa74c9d5
|