Skip to content

Fix of the cursor jumping to the beginning of a line when collapsing …#350

Open
timhansinger wants to merge 1 commit into
alexluigit:mainfrom
timhansinger:main
Open

Fix of the cursor jumping to the beginning of a line when collapsing …#350
timhansinger wants to merge 1 commit into
alexluigit:mainfrom
timhansinger:main

Conversation

@timhansinger

Copy link
Copy Markdown

…subtrees of a directory which is on the first line

Currently when we have a directory on the first line and it is expanded and when then want to collapse it by pressing tab the cursor jumps to the beginning of the first line and doesn't go to the beginning of the file name (which is exactly what happens if we do the same expansion/collapse on a directory which is not on the first line). This should fix that.

…subtrees of a directory which is on the first line
@timhansinger

Copy link
Copy Markdown
Author

I hope it is okay that I just created the pull request and not an issue first. I haven't done that too often yet.

TreeSnowFence added a commit to TreeSnowFence/dirvish that referenced this pull request May 31, 2026
Fixed bug with collapsing top subtree in directory in dired layout of
dirvish. Previously, if you were collapsing the top dirvish subtree in a
buffer, the cursor would go to the beginning of the line, and if it was
the only directory there, would make navigation deeper impossible. This
fix simply makes sure that the cursor stays at the filename in all scenarios.

Credit to @timhansinger for pointing this out with the following pull request:
alexluigit#350
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