File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import {
31
31
} from '../../vimscript/expression/types' ;
32
32
import { displayValue } from '../../vimscript/expression/displayValue' ;
33
33
import { ErrorCode , VimError } from '../../error' ;
34
+ import { bangParser } from '../../vimscript/parserUtils' ;
34
35
35
36
type Unpack = {
36
37
type : 'unpack' ;
@@ -286,13 +287,13 @@ export class LetCommand extends ExCommand {
286
287
287
288
export class UnletCommand extends ExCommand {
288
289
public static readonly argParser = seqMap (
289
- string ( '!' ) . fallback ( undefined ) ,
290
+ bangParser ,
290
291
whitespace . then ( variableParser . sepBy ( whitespace ) ) ,
291
292
( bang , variables ) => {
292
293
if ( variables . length === 0 ) {
293
294
throw VimError . fromCode ( ErrorCode . ArgumentRequired ) ;
294
295
}
295
- return new UnletCommand ( variables , bang !== undefined ) ;
296
+ return new UnletCommand ( variables , bang ) ;
296
297
} ,
297
298
) ;
298
299
You can’t perform that action at this time.
0 commit comments