This commit is contained in:
2026-03-26 22:57:48 -05:00
parent 80593a39a6
commit 5f6262e0b5
2 changed files with 33 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ local function boxed(...)
local wrapped = {}
for _, line in ipairs(quote_val) do
-- reuse vim.fn.split with the same regex used originally
local parts = vim.fn.split(line, "\\%50c.\\{-}\\zs\\s", 1)
local parts = vim.fn.split(line, "\\%50c.\\{-}\\zs\\s", true)
for _, p in ipairs(parts) do
table.insert(wrapped, p)
end
@@ -569,7 +569,7 @@ fortune_cfg.predefined_quotes = {
{
"Fix the problem, not the blame.",
"",
"It doesn't really matter whether the bug is your fault or someone else's - it is still your problem, and it still needs to be fixed."
"It doesn't really matter whether the bug is your fault or someone elses - it is still your problem, and it still needs to be fixed."
},
{
'"select" isn\'t broken.',