We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0ca5d8 commit 3e80de0Copy full SHA for 3e80de0
src/internal/model_render.go
@@ -513,12 +513,17 @@ func (m model) filePreviewPanelRender() string {
513
outPutLog("error get file info", err)
514
return box.Render("\n --- " + icon.Error + " Error get file info ---")
515
}
516
-
+
517
ext := filepath.Ext(itemPath)
518
// check if the file is pdf file, cuz pdf will cause error
519
if ext == ".pdf" {
520
return box.Render("\n --- " + icon.Error + " Unsupported formats ---")
521
- }
+ }
522
523
+ // check if the file is torrent file, cuz torrent will cause error
524
+ if ext == ".torrent" {
525
+ return box.Render("\n --- " + icon.Error + " Unsupported formats ---")
526
527
528
if fileInfo.IsDir() {
529
directoryContent := ""
0 commit comments