File tree Expand file tree Collapse file tree 3 files changed +1
-16
lines changed
Expand file tree Collapse file tree 3 files changed +1
-16
lines changed Original file line number Diff line number Diff line change 66 TextRenderable ,
77 KeyEvent ,
88 type ExtmarksController ,
9- type ExtmarkDeletedEvent ,
109} from "../index.js"
1110import { setupCommonDemoKeys } from "./lib/standalone-keys.js"
1211import { SyntaxStyle } from "../syntax-style.js"
@@ -90,13 +89,6 @@ export async function run(rendererInstance: CliRenderer): Promise<void> {
9089
9190 findAndMarkVirtualRanges ( )
9291
93- extmarksController . on ( "extmark-deleted" , ( event : ExtmarkDeletedEvent ) => {
94- if ( helpText ) {
95- const extmark = event . extmark
96- helpText . content = `Deleted extmark at ${ extmark . start } -${ extmark . end } via ${ event . trigger } `
97- }
98- } )
99-
10092 helpText = new TextRenderable ( renderer , {
10193 id : "help" ,
10294 content : "Move cursor with arrows. Try backspacing at end of [VIRTUAL] markers!" ,
Original file line number Diff line number Diff line change @@ -196,12 +196,6 @@ const examples: Example[] = [
196196 run : linkDemo . run ,
197197 destroy : linkDemo . destroy ,
198198 } ,
199- {
200- name : "Extmarks Demo" ,
201- description : "Virtual extmarks - text ranges that cursor jumps over, like inline tags and links" ,
202- run : extmarksDemo . run ,
203- destroy : extmarksDemo . destroy ,
204- } ,
205199 {
206200 name : "Opacity Demo" ,
207201 description : "Box opacity and transparency effects with animated opacity transitions" ,
Original file line number Diff line number Diff line change @@ -589,6 +589,7 @@ export class CliRenderer extends EventEmitter implements RenderContext {
589589 this . maxFps = config . maxFps || 60
590590 this . targetFrameTime = 1000 / this . targetFps
591591 this . minTargetFrameTime = 1000 / this . maxFps
592+ this . clock = config . clock ?? new SystemClock ( )
592593 this . memorySnapshotInterval = config . memorySnapshotInterval ?? 0
593594 this . gatherStats = config . gatherStats || false
594595 this . maxStatSamples = config . maxStatSamples || 300
@@ -634,8 +635,6 @@ export class CliRenderer extends EventEmitter implements RenderContext {
634635
635636 this . addExitListeners ( )
636637
637- this . clock = config . clock ?? new SystemClock ( )
638-
639638 const stdinParserMaxBufferBytes = config . stdinParserMaxBufferBytes ?? DEFAULT_STDIN_PARSER_MAX_BUFFER_BYTES
640639 this . stdinParser = new StdinParser ( {
641640 timeoutMs : 10 ,
You can’t perform that action at this time.
0 commit comments