mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 15:38:33 +00:00
fix(clang/'Dead store'): do not assign endcol (#17788)
This commit is contained in:
@@ -151,10 +151,8 @@ void ui_client_event_grid_line(Array args)
|
|||||||
Integer startcol = args.items[2].data.integer;
|
Integer startcol = args.items[2].data.integer;
|
||||||
Array cells = args.items[3].data.array;
|
Array cells = args.items[3].data.array;
|
||||||
|
|
||||||
Integer endcol, clearcol;
|
|
||||||
// TODO(hlpr98): Accommodate other LineFlags when included in grid_line
|
// TODO(hlpr98): Accommodate other LineFlags when included in grid_line
|
||||||
LineFlags lineflags = 0;
|
LineFlags lineflags = 0;
|
||||||
endcol = startcol;
|
|
||||||
|
|
||||||
size_t j = 0;
|
size_t j = 0;
|
||||||
int cur_attr = 0;
|
int cur_attr = 0;
|
||||||
@@ -203,8 +201,8 @@ void ui_client_event_grid_line(Array args)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
endcol = startcol + (int)j;
|
Integer endcol = startcol + (int)j;
|
||||||
clearcol = endcol + clear_width;
|
Integer clearcol = endcol + clear_width;
|
||||||
clear_attr = cur_attr;
|
clear_attr = cur_attr;
|
||||||
|
|
||||||
ui_call_raw_line(grid, row, startcol, endcol, clearcol, clear_attr, lineflags,
|
ui_call_raw_line(grid, row, startcol, endcol, clearcol, clear_attr, lineflags,
|
||||||
|
Reference in New Issue
Block a user