The problem seems to be when going to the bottom of the file with relative moves (going one line at a time with j doesn't crash) and then trying to go up.
I'm not familiar with the codebase and not too familiar with Rust either but after taking a quick look I found a quick fix.
After doing a few relative line movements (something like
23j23j23j23j23k
) it panics.Backstrace:
The problem seems to be when going to the bottom of the file with relative moves (going one line at a time with
j
doesn't crash) and then trying to go up. I'm not familiar with the codebase and not too familiar with Rust either but after taking a quick look I found a quick fix.It's not pretty but works.
EDIT: Improved patch.
EDIT: Closing, should have made a PR in the first place.