Nnn: Segfault opening a new context on an empty dir

Created on 13 May 2020  路  3Comments  路  Source: jarun/nnn

Environment details (Put x in the checkbox along with the information)

[ ] Operating System: Linux
[ ] Desktop Environment: None
[ ] Terminal Emulator:
[ ] Shell:
[ ] Custom desktop opener (if applicable):
[x] Program options used: None
[x] Configuration options set: Nothing
[x] Issue exists on nnn master

Exact steps to reproduce the issue

Open nnn master on an empty dir

~sh
mkdir /tmp/empty
nnn /tmp/empty
~

Then press 2 to open context 2.
-> Segfault.

bug

All 3 comments

It's a bit lazy of a commit, but I did it for you. Cheers.

Yeah I was lazy tonight, thank you!

I added a guard based on ndents.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fcying picture fcying  路  9Comments

amanjitsk picture amanjitsk  路  7Comments

harriott picture harriott  路  6Comments

kuntau picture kuntau  路  3Comments

snide picture snide  路  6Comments