mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
fix(ui): propagate line wrapping state on grid_line events
This fixes the TUI's line-wrapping behavior, which was broken with the migration to the msgpack-based UI protocol (see https://github.com/neovim/neovim/issues/7369#issuecomment-1571812273).
This commit is contained in:
@@ -441,7 +441,7 @@ redo:
|
||||
case 14:
|
||||
NEXT_TYPE(tok, MPACK_TOKEN_ARRAY);
|
||||
int eventarrsize = (int)tok.length;
|
||||
if (eventarrsize != 4) {
|
||||
if (eventarrsize != 5) {
|
||||
p->state = -1;
|
||||
return false;
|
||||
}
|
||||
@@ -509,11 +509,16 @@ redo:
|
||||
}
|
||||
|
||||
g->icell++;
|
||||
p->read_ptr = data;
|
||||
p->read_size = size;
|
||||
if (g->icell == g->ncells) {
|
||||
NEXT_TYPE(tok, MPACK_TOKEN_BOOLEAN);
|
||||
g->wrap = mpack_unpack_boolean(tok);
|
||||
p->read_ptr = data;
|
||||
p->read_size = size;
|
||||
return true;
|
||||
}
|
||||
|
||||
p->read_ptr = data;
|
||||
p->read_size = size;
|
||||
goto redo;
|
||||
|
||||
case 12:
|
||||
|
Reference in New Issue
Block a user