Caret key (^
) does not work as expected in evcxr_repl in vi edit mode
#645
Labels
^
) does not work as expected in evcxr_repl in vi edit mode
#645
I originally posted the issue in evcxr/evcxr#239 , but it turned out to be a bug of thi scrate, rustyline.
This seems due to a wrong implementation here:
In this implementation, it first jumps to the beginning of the line, and then move to the "next" word considering any consecutive sequence of non-empty characters as a word. This is problematic only when the first character is a non-empty character; since the cursor is already at the beginning of a "word", it jumps it to the succeeding word, causing the unintuitive behavior.
I am nst sure how should I properly fix it.
s.edit_move_to_next_word
eventually callsLineBuffer::next_word_pos
to find the actual position to jump to. Should I modify the signature of this method to accept an additional argument for "Inclusive/Exclusive" enum? Or shuold I call a different method in theMove(ViFirstPrint)
match arm?The text was updated successfully, but these errors were encountered: