mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
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
This commit is contained in:
@@ -15,6 +15,7 @@ local function shell_quote(str)
|
||||
end
|
||||
end
|
||||
|
||||
--- @class test.helpers
|
||||
local module = {
|
||||
REMOVE_THIS = {},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user