summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/fsobject/file.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/fsobject/file.py b/ranger/fsobject/file.py
index 0debb44c..5e79c2d1 100644
--- a/ranger/fsobject/file.py
+++ b/ranger/fsobject/file.py
@@ -76,7 +76,9 @@ class File(FileSystemObject):
 	def has_preview(self):
 		if not self.fm.settings.preview_files:
 			return False
-		if not self.accessible or self.is_fifo or self.is_device:
+		if self.is_socket or self.is_fifo or self.is_device:
+			return False
+		if not self.accessible:
 			return False
 		if PREVIEW_WHITELIST.search(self.basename):
 			return True