Skip to content

Commit 8d2f1af

Browse files
committed
chore: strip whitespace in buf target resolve
1 parent 79747e3 commit 8d2f1af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/gp/init.lua

+2
Original file line numberDiff line numberDiff line change
@@ -1515,6 +1515,8 @@ M.resolve_buf_target = function(params)
15151515
args = params
15161516
end
15171517

1518+
args = args:match("^%s*(.-)%s*$")
1519+
15181520
if args == "popup" then
15191521
return M.BufTarget.popup
15201522
elseif args == "split" then

0 commit comments

Comments
 (0)