mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 15:38:33 +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:
@@ -210,9 +210,7 @@ void ui_client_event_raw_line(GridLineEvent *g)
|
||||
int grid = g->args[0], row = g->args[1], startcol = g->args[2];
|
||||
Integer endcol = startcol + g->coloff;
|
||||
Integer clearcol = endcol + g->clear_width;
|
||||
|
||||
// TODO(hlpr98): Accommodate other LineFlags when included in grid_line
|
||||
LineFlags lineflags = 0;
|
||||
LineFlags lineflags = g->wrap ? kLineFlagWrap : 0;
|
||||
|
||||
tui_raw_line(tui, grid, row, startcol, endcol, clearcol, g->cur_attr, lineflags,
|
||||
(const schar_T *)grid_line_buf_char, grid_line_buf_attr);
|
||||
|
Reference in New Issue
Block a user