From eb6461f3a8dcc75d6360fa1bbf78289736cce573 Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Sat, 15 Dec 2018 15:04:22 +0700 Subject: [PATCH] Fix style on search cancel --- print.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/print.js b/print.js index fa59baa..6212d7a 100644 --- a/print.js +++ b/print.js @@ -4,7 +4,7 @@ const config = require('./config') function format(value, style, highlightStyle, regexp, transform = x => x) { if (!regexp) { - return config.string(transform(value)) + return style(transform(value)) } const marked = value .replace(regexp, s => '' + s + '')