Closed quininer closed 8 years ago
Hey @quininer! Thank you for taking the time to submit this.
While this certainly does fix the crash you mention, I feel it doesn't fix it in the right way. What this does is reset the cursor back to the start of buffer - regardless of your previous position.
I'm wondering if a better approach to this issue would be to fix get_word_index_backward
and get_word_index_forward
in buffer.rs
instead? These are the two methods for handling word-based movement, and causing the incorrect position after pressing b
. If those two methods were performing correctly, we may not need this patch.
On the other hand, once those methods are performing correctly, it might be the case that we definitely need this patch, I'm just not sure yet. So I'm going to hold off on this for the moment, until the word-based movement is working properly. I'll open a ticket for that...
Thanks again!
@quininer this has been resolved by another commit, so I'm going to close this. But I really appreciate you taking the time to put this patch together. Thank you!
steps to reproduce:
iota --vi README.md
jjjbk
"move one word backward" behavior seems wrong.