about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/config')
-rw-r--r--src/config/mailcap.nim7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/config/mailcap.nim b/src/config/mailcap.nim
index fc75086d..0caf7f17 100644
--- a/src/config/mailcap.nim
+++ b/src/config/mailcap.nim
@@ -216,11 +216,10 @@ proc quoteFile(file: string, qs: QuoteState): string =
       elif qs == QS_NORMAL:
         s &= '\\'
       # double-quoted: append normally
-    of '_', '.', ':', '/':
+    of AsciiAlphaNumeric, '_', '.', ':', '/':
       discard # no need to quote
-    else:
-      if c notin AsciiAlpha and qs == QS_NORMAL:
-        s &= '\\'
+    elif qs == QS_NORMAL:
+      s &= '\\'
     s &= c
   return s