Sanitize cursorWidth option

This commit is contained in:
Nick Pezza
2019-12-07 15:42:33 -05:00
parent 97dc61e65f
commit 70c8f8733a
+1
View File
@@ -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}`);