diff options
Diffstat (limited to 'plugins/titleize.lua')
-rw-r--r-- | plugins/titleize.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/titleize.lua b/plugins/titleize.lua index 16d20b0..096265c 100644 --- a/plugins/titleize.lua +++ b/plugins/titleize.lua @@ -3,8 +3,8 @@ local core = require "core" local command = require "core.command" command.add("core.docview", { - ["titleize:titleize"] = function() - core.active_view.doc:replace(function(text) + ["titleize:titleize"] = function(dv) + dv.doc:replace(function(text) return text:gsub("%f[%w](%w)", string.upper) end) end, |