mirror of
https://github.com/neovim/neovim.git
synced 2024-12-21 03:35:02 -07:00
tui: fix uninitialize variable usage (#8261)
This fixes an issue with compiles failing in release mode due to shape having the possibility of being used uninitialized (since the default case was missing).
This commit is contained in:
parent
87f4d2592c
commit
d48df146d1
@ -937,6 +937,7 @@ static void tui_set_mode(UI *ui, ModeShape mode)
|
||||
|
||||
int shape;
|
||||
switch (c.shape) {
|
||||
default:
|
||||
case SHAPE_BLOCK: shape = 1; break;
|
||||
case SHAPE_HOR: shape = 3; break;
|
||||
case SHAPE_VER: shape = 5; break;
|
||||
|
Loading…
Reference in New Issue
Block a user