fix(test): immediately reposition caret and tape on tapeMargin change (@byseif21) (#6860)

### Description

changing `tapeMargin` mid-test didn’t move the caret until typing
resumed because no layout update was triggered for this config.
This commit is contained in:
Seif Soliman 2025-08-14 12:30:48 +03:00 committed by GitHub
parent a3764460e4
commit 5fcf964ebc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View file

@ -55,7 +55,13 @@ describe("ConfigMeta", () => {
.sort();
expect(configsWithTriggeResize).toEqual(
["fontSize", "keymapSize", "maxLineWidth", "tapeMode"].sort()
[
"fontSize",
"keymapSize",
"maxLineWidth",
"tapeMode",
"tapeMargin",
].sort()
);
});
describe("overrideValue", () => {

View file

@ -512,6 +512,7 @@ export const configMetadata: ConfigMetadataObject = {
tapeMargin: {
icon: "fa-tape",
displayString: "tape margin",
triggerResize: true,
changeRequiresRestart: false,
},
smoothLineScroll: {