Skip to content

Commit

Permalink
chore: strip whitespace in buf target resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
Robitx committed Feb 28, 2024
1 parent 79747e3 commit 8d2f1af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/gp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1515,6 +1515,8 @@ M.resolve_buf_target = function(params)
args = params
end

args = args:match("^%s*(.-)%s*$")

if args == "popup" then
return M.BufTarget.popup
elseif args == "split" then
Expand Down

0 comments on commit 8d2f1af

Please sign in to comment.