aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-03-18 06:14:48 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-03-18 06:42:49 +0530
commit39f84efa55f506e1db92b39bacfedee91c0ac6f0 (patch)
treeb34321b73415a21a2fa54375c5e670a0898726ab /src
parenteb7e14a964e6afeea366c41f919b2a15a1b99952 (diff)
downloadnnn-39f84efa55f506e1db92b39bacfedee91c0ac6f0.tar.gz
Do not refresh on mediainfo
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 65cd394..114d944 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3315,12 +3315,12 @@ nochange:
r = TRUE;
switch (sel) {
- case SEL_MEDIA:
- r = show_mediainfo(newpath, NULL);
- break;
+ case SEL_MEDIA: // fallthrough
case SEL_FMEDIA:
- r = show_mediainfo(newpath, "-f");
- break;
+ tmp = (sel == SEL_FMEDIA) ? "-f" : NULL;
+ show_mediainfo(newpath, tmp);
+ setdirwatch();
+ goto nochange;
case SEL_ARCHIVELS:
r = handle_archive(newpath, "-l", path);
break;