aboutsummaryrefslogtreecommitdiff
path: root/plugins/sort.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sort.lua')
-rw-r--r--plugins/sort.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/sort.lua b/plugins/sort.lua
index fd9d044..6c65149 100644
--- a/plugins/sort.lua
+++ b/plugins/sort.lua
@@ -24,7 +24,7 @@ command.add("core.docview", {
local head, body, foot = text:match("(\n*)(.-)(\n*)$")
local lines = split_lines(body)
table.sort(lines, function(a, b) return a:lower() < b:lower() end)
- return head .. table.concat(lines, "\n") .. foot
+ return head .. table.concat(lines, "\n") .. foot, 1
end)
end,
})