Skip to content

Commit

Permalink
Fix "wt --pos x,y" parsing in argmatcher.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisant996 committed Nov 27, 2023
1 parent fce42d3 commit 43d12a1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions completions/wt.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
require("arghelper")
local clink_version = require("clink_version")

local pos_args = clink.argmatcher():addarg({fromhistory=true, loopchars=","})
local size_args = clink.argmatcher():addarg({fromhistory=true, loopchars=","})
local pos_args = clink.argmatcher():addarg({fromhistory=true, nowordbreakchars=","})
local size_args = clink.argmatcher():addarg({fromhistory=true, nowordbreakchars=","})
local window_args = clink.argmatcher():addarg({fromhistory=true})

if not clink_version.supports_argmatcher_nowordbreakchars then
pos_args:addarg({fromhistory=true})
size_args:addarg({fromhistory=true})
end

local subcommands = {
["nt"]=true, ["new-tab"]=true,
["sp"]=true, ["split-pane"]=true,
Expand Down

0 comments on commit 43d12a1

Please sign in to comment.