@@ -70,7 +70,7 @@ function ArgObject:get_flag(names, opt)
7070 return v
7171 end )
7272
73- -- If a list isn't expcted : return the last defined value for this flag.
73+ -- If a list isn't expected : return the last defined value for this flag.
7474 return opt .expect_list and values or values [# values ]
7575end
7676
@@ -96,7 +96,7 @@ function FlagValueMap:put(flag_synonyms, producer)
9696 end
9797 end
9898 self .map [flag ] = producer or { " true" , " false" }
99- self .map [# self .map + 1 ] = flag
99+ self .map [# self .map + 1 ] = flag
100100 end
101101end
102102
@@ -155,7 +155,7 @@ function FlagValueMap:get_completion(arg_lead)
155155 for _ , v in ipairs (values ) do
156156 local e_lead , _ = vim .pesc (arg_lead )
157157 if v :match (e_lead ) then
158- items [# items + 1 ] = name_lead .. v
158+ items [# items + 1 ] = name_lead .. v
159159 end
160160 end
161161
@@ -217,17 +217,17 @@ end
217217function M .split_ex_range (arg )
218218 local idx = arg :match (" .*()%A" )
219219 if not idx then
220- return " " , arg
220+ return " " , arg
221221 end
222222
223223 local slice = arg :sub (idx or 1 )
224224 idx = slice :match (" [^']()%a" )
225225
226226 if idx then
227- return arg :sub (1 , (# arg - # slice ) + idx - 1 ), slice :sub (idx )
227+ return arg :sub (1 , (# arg - # slice ) + idx - 1 ), slice :sub (idx )
228228 end
229229
230- return arg , " "
230+ return arg , " "
231231end
232232
233233--- @class CmdLineContext
0 commit comments