Skip to content

Conversation

m4rch3n1ng
Copy link
Contributor

@m4rch3n1ng m4rch3n1ng commented Oct 13, 2025

slight followup to #14571, as the behaviour was already there previously but is more noticeable with that pr.

helix, like most editors, always keeps an empty line around at the end. currently doing hx + <file> moves the cursor to the very last line, the one that is empty and doesn't even have a line number (just a ~). this is annoying, as there is never anything on the last line and you always have to k one extra time to get to the content. with this pr it will no longer jump to the very last line, if that is empty.

this now also matches the behaviour of goto last line and of doing :<number>, where <number> is higher than the number of lines in the file.

this matches the behaviour of goto last line.
@m4rch3n1ng m4rch3n1ng changed the title don't set the row position to the empty last line don't set the row position to the empty last line with the + cli arg Oct 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant