Skip to content

Error on executing rhs mapping leaves submode #26

@nilsboy

Description

@nilsboy

Given this submode definition:

call submode#enter_with('move', 'n', '', '<leader>m')
call submode#map('move', 'n', '', 'j', '<c-f>')
call submode#map('move', 'n', '', 'k', '<c-b>')

When I press j continuously in the submode until I reach the end of the file - submode exits when it is not possible to execute <c-f> anymore.

I would expect to stay in the submode no matter the error until I press the leave_with-key.

Could you look into this?
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions