Commit 66cd599a authored by Adam Saponara's avatar Adam Saponara
Browse files

fix bug with kmap fallthru for multi-input key bindings.

fallthru was not working properly for overlapping multi-input key
bindings. for example, if the current kmap (with fallthru allowed)
contained a key binding for `a x`, and its parent contained a key
binding for `a y`, then inputting `a y` would not execute the binding
in the parent kmap.

an additional issue arises here in that if the binding for `a y` is
`cmd_insert_data` then both inputs should count as input data, not
just the tail. (usually the inputs leading up to a multi-input
binding are simply consumed and forgotten.) this requires some
gymnastics. it would be a good exercise to see if we can
consolidate `pastebuf` and `input_trail`.
parent b43575af
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment