We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3309550 commit 5ac600aCopy full SHA for 5ac600a
sources/VT100Terminal.m
@@ -2044,7 +2044,7 @@ - (void)executeXtermSetKvp:(VT100Token *)token {
2044
// Value must be an integer. Bogusly, non-numbers are treated as 0.
2045
int shape = [value intValue];
2046
ITermCursorType shapeMap[] = { CURSOR_BOX, CURSOR_VERTICAL, CURSOR_UNDERLINE };
2047
- if (shape >= 0 && shape < sizeof(shapeMap)/sizeof(int)) {
+ if (shape >= 0 && shape < sizeof(shapeMap)/sizeof(*shapeMap)) {
2048
[delegate_ terminalSetCursorType:shapeMap[shape]];
2049
}
2050
} else if ([key isEqualToString:@"ShellIntegrationVersion"]) {
0 commit comments