nit: Abstract some functions (#498)

This commit is contained in:
TJ DeVries
2021-02-04 20:56:05 -05:00
committed by GitHub
parent d6ce595aba
commit 5f1d16acf6
2 changed files with 153 additions and 131 deletions

View File

@@ -54,7 +54,11 @@ function config.set_defaults(defaults)
set("borderchars", { '', '', '', '', '', '', '', ''})
set("get_status_text", function(self)
return string.format("%s / %s", (self.stats.processed or 0) - (self.stats.filtered or 0), self.stats.processed)
return string.format(
"%s / %s",
(self.stats.processed or 0) - (self.stats.filtered or 0),
self.stats.processed or 0
)
end)
-- Builtin configuration