Skip to content
Discussion options

You must be logged in to vote
function ble/widget/discard-and-enter-insert {
  ble-edit/buffer#clear
  ble/decode/keymap vi_imap
}

Where did this come from? There is no such function as ble-edit/buffer#clear or ble/decode/keymap. Even if it existed, you shouldn't call random internal functions without understanding them. You might be able to change a part of the internal state by calling some functions, but you actually need to adjust many different states to make it work. If you want to combine existing behaviors of widgets, you can just call the widgets in order:

function ble/widget/discard-and-enter-insert {
  ble/widget/discard-line
  ble/widget/vi_nmap/insert-mode
}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@akinomyoga
Comment options

Answer selected by Strykar
@Strykar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants