Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lua/aoc/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ M.init = function(args)

M.options.session_filepath = vim.fn.expand(M.options.session_filepath)
if M.options.puzzle_input.alternative_filepath then
M.options.alternative_filepath = vim.fn.expand(M.options.alternative_filepath)
M.options.puzzle_input.alternative_filepath =
vim.fn.expand(M.options.puzzle_input.alternative_filepath)
end
end

Expand Down
4 changes: 2 additions & 2 deletions lua/aoc/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ local M = {}
---@param s string
---@return string
M.trim = function(s)
s, _ = string.gsub(s, "%s+", "")
return s
local result, _ = string.gsub(s, "^%s*(.-)%s*$", "%1")
return result
end

--- Create a simple popup message, positioned in the bottom right corner of the buffer
Expand Down