Fix bracket-expr + single char binds

This commit is contained in:
gholk 2026-06-15 16:37:18 +02:00 committed by Oliver Blanthorn
parent 4bf6032a08
commit 1febc15c16
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -451,7 +451,7 @@ export function mapstrToKeyseq(mapstr: string): MinimalKey[] {
;[key, mapstr] = bracketexprToKey(mapstr)
const explicitDirection = hasExplicitDirection(key)
keyseq.push(explicitDirection ? key : minimalKeyFromObj(key))
if (mapstr.length > 1 && !explicitDirection)
if (mapstr.length > 0 && !explicitDirection)
keyseq.push(
minimalKeyFromObj(
R.mergeRight(key, { keyup: true, optional: true }),