Fix and add browse_exapand option into sample ini.

This commit is contained in:
sorgelig
2020-05-18 18:56:52 +08:00
parent 5d5bc45ca3
commit cffd000873
2 changed files with 6 additions and 1 deletions

View File

@@ -107,3 +107,6 @@ jammasd_pid=0xF3AD
; 0 - (default) - faster move in non-sniper mode, slower move in sniper mode.
; 1 - movement speeds are swapped.
sniper_mode=0
; Uncomment following option if you don't want to see a second line for long file names in listing.
;browse_expand=0

View File

@@ -5278,7 +5278,9 @@ void PrintDirectory(int expand)
char s[40];
ScrollReset();
if (expand && cfg.browse_expand)
if (!cfg.browse_expand) expand = 0;
if (expand)
{
int k = flist_iFirstEntry() + OsdGetSize() - 1;
if (flist_nDirEntries() && k == flist_iSelectedEntry() && k <= flist_nDirEntries() &&