docs: fix suppress and addressable spelling in mouse comments
Correct "supress"/"addressible" to "suppress"/"addressable" in MouseStateService, MouseService tests, and InputHandler test titles. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -176,7 +176,7 @@ describe('MouseService _triggerMouseEvent', () => {
|
||||
for (let i = 0; i < bufferService.cols; ++i) {
|
||||
assert.equal(trigger({ col: i, row: 0, x: 0, y: 0, button: CoreMouseButton.LEFT, action: CoreMouseAction.DOWN }), true);
|
||||
if (i > 222) {
|
||||
// supress mouse reports if we are out of addressible range (max. 222)
|
||||
// suppress mouse reports if we are out of addressable range (max. 222)
|
||||
assert.deepEqual(toBytes(reports.pop()), []);
|
||||
} else {
|
||||
assert.deepEqual(toBytes(reports.pop()), [0x1b, 0x5b, 0x4d, 0x20, i + 33, 0x21]);
|
||||
|
||||
@@ -1241,7 +1241,7 @@ describe('InputHandler', () => {
|
||||
await inputHandler.parseP('\x1b[e');
|
||||
assert.deepEqual(getCursor(bufferService), [8, 5]);
|
||||
});
|
||||
describe('should clamp cursor into addressible range', () => {
|
||||
describe('should clamp cursor into addressable range', () => {
|
||||
it('CUF', async () => {
|
||||
bufferService.buffer.x = 10000;
|
||||
bufferService.buffer.y = 10000;
|
||||
|
||||
@@ -126,7 +126,7 @@ const DEFAULT_ENCODINGS: { [key: string]: CoreMouseEncoding } = {
|
||||
*/
|
||||
DEFAULT: (e: ICoreMouseEvent) => {
|
||||
const params = [eventCode(e, false) + 32, e.col + 32, e.row + 32];
|
||||
// supress mouse report if we exceed addressible range
|
||||
// suppress mouse report if we exceed addressable range
|
||||
// Note this is handled differently by emulators
|
||||
// - xterm: sends 0;0 coords instead
|
||||
// - vte, konsole: no report
|
||||
|
||||
Reference in New Issue
Block a user