mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Fix #2422: reduce duplication with lib/state
This commit is contained in:
parent
70f70f1095
commit
524629ddf8
1 changed files with 2 additions and 10 deletions
|
@ -17,16 +17,8 @@ export class PrevInput {
|
|||
jumppos?: number
|
||||
}
|
||||
|
||||
class State {
|
||||
class ContentState {
|
||||
mode: ModeName = "normal"
|
||||
cmdHistory: string[] = []
|
||||
prevInputs: PrevInput[] = [
|
||||
{
|
||||
inputId: undefined,
|
||||
tab: undefined,
|
||||
jumppos: undefined,
|
||||
},
|
||||
]
|
||||
suffix: string = ""
|
||||
}
|
||||
|
||||
|
@ -67,4 +59,4 @@ export const contentState = (new Proxy(
|
|||
return true
|
||||
},
|
||||
},
|
||||
) as any) as State
|
||||
) as any) as ContentState
|
||||
|
|
Loading…
Add table
Reference in a new issue