71/dance

[BUG] `m` doesn't put the cursor in the correct location

Closed this issue · 1 comments

Based on this golf snippet: https://github.com/mawww/golf/tree/master/4d1a1c36567bac34a9000002

Given

puts "Hello #{a}, #{b}, #{c}, #{d}"

and the sequence mfdc

Kakoune will

  • select {a} (cursor on })
  • select }, #{b}, #{c}, #{d (cursor on d)
  • enter insert mode with puts "Hello #{a|}" (cursor indicated by |)

Dance will:

  • select {a} (cursor on ,)
  • select {a}, #{b}, #{c}, #{d (cursor on })
  • enter insert mode with puts "Hello #{a}|}" (cursor indicated by |)

actually not a bug, selectionBehavior: "character" fixes it.