neovim/test/unit
LW 468292dcb7
fix(rpc): "grid_line" event parsing crashes (#25581)
refactor: use a more idiomatic loop to iterate over the cells

There are two cases in which the following assertion would fail:
```c
assert(g->icell < g->ncells);
```

1. If `g->ncells = 0`. Update this to be legal.
2. If an EOF is reached while parsing `wrap`. In this case, the unpacker
   attempts to resume from `cells`, which is a bug. Create a new state
   for parsing `wrap`.

Reference: https://neovim.io/doc/user/ui.html#ui-event-grid_line
2023-11-04 06:56:45 +08:00
..
api
charset vim-patch:9.0.1380: CTRL-X on 2**64 subtracts two (#22530) 2023-03-05 09:18:42 +08:00
eval vim-patch:9.0.1704: Cannot use positional arguments for printf() (#24719) 2023-08-15 19:16:19 +08:00
fixtures refactor: remove use of reserved c++ keywords 2023-04-06 22:39:50 +02:00
os refactor: reorganize option header files (#25437) 2023-09-30 14:41:34 +08:00
viml feat: add support for global statusline 2022-03-18 00:21:41 +06:00
buffer_spec.lua test(unit): move statusline tests to statusline_spec.lua (#25441) 2023-09-30 20:38:04 +08:00
fileio_spec.lua
formatc.lua refactor(unit): add type annotations 2023-04-14 12:41:57 +01:00
garray_spec.lua
helpers.lua fix(rpc): "grid_line" event parsing crashes (#25581) 2023-11-04 06:56:45 +08:00
indent_spec.lua vim-patch:8.1.1966: some code in options.c fits better elsewhere (#19840) 2022-08-19 19:20:39 +08:00
keycodes_spec.lua test(unit): move statusline tests to statusline_spec.lua (#25441) 2023-09-30 20:38:04 +08:00
marktree_spec.lua docs: small fixes 2023-10-10 19:20:32 +02:00
mbyte_spec.lua
memory_spec.lua
message_spec.lua refactor: remove char_u (#22829) 2023-04-02 16:11:42 +08:00
msgpack_spec.lua fix(rpc): "grid_line" event parsing crashes (#25581) 2023-11-04 06:56:45 +08:00
multiqueue_spec.lua
optionstr_spec.lua refactor: reorganize option header files (#25437) 2023-09-30 14:41:34 +08:00
path_spec.lua refactor: reorganize option header files (#25437) 2023-09-30 14:41:34 +08:00
preload.lua test: replace lfs with luv and vim.fs 2023-04-04 21:59:06 +02:00
preprocess.lua refactor(unit): add type annotations 2023-04-14 12:41:57 +01:00
profile_spec.lua
rbuffer_spec.lua
search_spec.lua vim-patch:9.0.1092: search error message doesn't show used pattern (#21518) 2022-12-24 07:55:03 +08:00
set.lua fix(lua): improve annotations for stricter luals diagnostics (#24609) 2023-08-09 11:06:13 +02:00
statusline_spec.lua test(unit): move statusline tests to statusline_spec.lua (#25441) 2023-09-30 20:38:04 +08:00
strings_spec.lua vim-patch:9.0.1856: issues with formatting positional arguments (#25013) 2023-09-04 08:49:50 +08:00
tempfile_spec.lua test: replace lfs with luv and vim.fs 2023-04-04 21:59:06 +02:00
testtest_spec.lua
tui_spec.lua refactor(tests): run unittests using main nvim binary in interpreter mode 2023-01-31 19:28:26 +01:00
undo_spec.lua refactor: reorganize option header files (#25437) 2023-09-30 14:41:34 +08:00