Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load file info after init #994

Merged
merged 2 commits into from
Nov 13, 2022
Merged

load file info after init #994

merged 2 commits into from
Nov 13, 2022

Conversation

valoq
Copy link
Contributor

@valoq valoq commented Nov 6, 2022

After init is set to true here

lf/app.go

Line 287 in a94015d

app.nav.init = true

loadFileInfo still needs to be called to display the file information after start.

Currently, the file information are only displayed after the user has changed the selected file/directory at least once.
This change fixes this issue by calling loadFileInfo after the current file information have been loaded.

@p-ouellette
Copy link
Contributor

I guess this is a fix for #388? Can this be done in such a way that the file info doesn't override error messages from a bad config file?

@valoq
Copy link
Contributor Author

valoq commented Nov 7, 2022

I guess this is a fix for #388? Can this be done in such a way that the file info doesn't override error messages from a bad config file?

Thanks for the hint, it should now resolve this issue as well.

@laktak
Copy link
Contributor

laktak commented Nov 8, 2022

This has bugged me for a while as well.

I've tested it briefly - looks good. Thanks for the patch!

@gokcehan
Copy link
Owner

@valoq Thanks for the patch.

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.

4 participants