@@ -148,6 +148,8 @@ data Config = Config
148148 , termName :: Maybe String
149149 -- | Terminal width map files.
150150 , termWidthMaps :: [(String, FilePath)]
151+ -- | Whether to permit custom Unicode width table loading.
152+ , allowCustomUnicodeWithTables :: Bool
151153 } deriving (Show, Eq)
152154
153155defaultConfig :: Config
@@ -166,6 +168,7 @@ instance Semigroup Config where
166168 , outputFd = outputFd c1 <|> outputFd c0
167169 , termName = termName c1 <|> termName c0
168170 , termWidthMaps = termWidthMaps c1 <|> termWidthMaps c0
171+ , allowCustomUnicodeWithTables = allowCustomUnicodeWithTables c1
169172 }
170173
171174instance Monoid Config where
@@ -180,6 +183,7 @@ instance Monoid Config where
180183 , outputFd = Nothing
181184 , termName = Nothing
182185 , termWidthMaps = []
186+ , allowCustomUnicodeWithTables = True
183187 }
184188#if !(MIN_VERSION_base(4,11,0))
185189 mappend = (<>)