From 39f84efa55f506e1db92b39bacfedee91c0ac6f0 Mon Sep 17 00:00:00 2001
From: Arun Prakash Jana <engineerarun@gmail.com>
Date: Mon, 18 Mar 2019 06:14:48 +0530
Subject: [PATCH] Do not refresh on mediainfo

---
 src/nnn.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c
index 65cd3942..114d944e 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;
-- 
2.51.0