Fix mode2maps never being used

This commit is contained in:
Oliver Blanthorn 2020-05-09 11:28:10 +01:00
parent 1af0d12756
commit c1e2264bc2
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -26,7 +26,7 @@ export function init(endCommand: string, mode = "normal", numCommands: number =
/** Receive keypress. If applicable, execute a command. */
export function parser(keys: KeyboardEvent[]) {
const conf = mode2maps[modeState.mode] || modeState.mode + "maps"
const conf = mode2maps.get(modeState.mode) || modeState.mode + "maps"
const maps: any = keyseq.keyMap(conf, keys)
const key = keys[0].key