Thanks to visit codestin.com
Credit goes to github.com

Skip to content

max() and min() give incomplete error message when given invalid type as an argument #1040

@ZyX-I

Description

@ZyX-I

Consider the following script:

vim -u NONE -i NONE -N --cmd 'echo min(v:true)' --cmd cq

. This will show

Error detected while processing pre-vimrc command line:
E712: Argument of %s must be a List or Dictionary
0

(note %s) while it should show “… of min() …” like you will see when using remove(). Same for max().

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions