Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | eval: add v:_null_string | Jan Edmund Lazo | 2021-04-08 |
| | | | | | | | | | | Replacement for Vim's test_null_string(). Vim uses it to verify that its codebase handles null strings. Preparation for the Test_null_list() in patch v8.2.1822. Use v:_null_string, not non-existent env var, for null string tests. Mention v:_null_string in id() because id(v:_null_string) returns (nil). | ||
* | test: update writefile test for invalid list items | Jan Edmund Lazo | 2018-06-24 |
| | | | | | | It validates list items with tv_check_str_on_nr() to catch invalid types (ex. E745, E805). If there is an invalid item, it does not write to the file. | ||
* | eval: Add s flag, use p_fs by default, error out on unknown flag | ZyX | 2017-04-03 |
| | |||
* | eval: Fix error messages from writefile | ZyX | 2017-02-14 |
| | | | | | | | | | | | | | | 1. When calling writefile(list, fname, []) do not show error message twice. 2. Do not allow file name to be overwritten for writefile([1], 2). 3. Do not show “Can’t open file with an empty name” error after error like “using Float as a String” when type of the second argument is not correct. 4. Do not give multiple error messages and still continue for code like `writefile(["test", [], [], [], "tset"])`. Note that to fix 4. ideally I need tv_check_str_or_nr which is currently present in two PRs: #6114 and #5119. I would want to avoid copying this function into a yet another PR. Ref vim/vim#1476. | ||
* | eval: writefile: Give more adequate IO errors and do not call putc() | ZyX | 2017-02-14 |