google / google/vim-maktaba

IsBool should handle v:true and v:false

Open
#240 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
588
Forks
41
PR merge metrics
No merged PRs in 30d

Description

`maktaba#ensure#IsBool(v:true)` currently throws a WrongType exception because the type of `v:true` and `v:false` is boolean rather than number. It seems to me that boolean values should be handled as well.

Additionally, the absence of `maktaba#value#IsBool` seems like a notable omission.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.