mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Sanitize cursorWidth option
This commit is contained in:
@@ -127,6 +127,7 @@ export class OptionsService implements IOptionsService {
|
||||
}
|
||||
break;
|
||||
case 'fastScrollSensitivity':
|
||||
case 'cursorWidth':
|
||||
case 'scrollSensitivity':
|
||||
if (value <= 0) {
|
||||
throw new Error(`${key} cannot be less than or equal to 0, value: ${value}`);
|
||||
|
||||
Reference in New Issue
Block a user