Fix #2422: reduce duplication with lib/state

This commit is contained in:
Oliver Blanthorn 2020-05-26 17:16:58 +01:00
parent 70f70f1095
commit 524629ddf8
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -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