Skip to content

Commit 82598e9

Browse files
committed
Fix default param DECSCUSR handling
1 parent b579649 commit 82598e9

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/common/InputHandler.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2733,14 +2733,12 @@ export class InputHandler extends Disposable implements IInputHandler {
27332733
* - 6: blink bar
27342734
*/
27352735
public setCursorStyle(params: IParams): boolean {
2736-
const param = params.params[0] ?? 1;
2736+
const param = params.length === 0 ? 1 : params.params[0];
27372737
if (param === 0) {
27382738
this._coreService.decPrivateModes.cursorStyle = undefined;
27392739
this._coreService.decPrivateModes.cursorBlink = undefined;
27402740
} else {
27412741
switch (param) {
2742-
case 0:
2743-
break;
27442742
case 1:
27452743
case 2:
27462744
this._coreService.decPrivateModes.cursorStyle = 'block';

0 commit comments

Comments
 (0)