mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
*: Fix test failures
This commit is contained in:
@@ -14545,12 +14545,14 @@ static void f_setline(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
|
||||
// Default result is zero == OK.
|
||||
for (;; ) {
|
||||
if (argvars[1].v_type == VAR_LIST) {
|
||||
// List argument, get next string.
|
||||
if (li == NULL) {
|
||||
break;
|
||||
if (li == NULL) {
|
||||
break;
|
||||
}
|
||||
line = tv_get_string_chk(TV_LIST_ITEM_TV(li));
|
||||
li = TV_LIST_ITEM_NEXT(l, li);
|
||||
}
|
||||
line = tv_get_string_chk(TV_LIST_ITEM_TV(li));
|
||||
li = TV_LIST_ITEM_NEXT(l, li);
|
||||
|
||||
rettv->vval.v_number = 1; // FAIL
|
||||
if (line == NULL || lnum < 1 || lnum > curbuf->b_ml.ml_line_count + 1) {
|
||||
|
@@ -140,7 +140,9 @@ static int conv_error(const char *const msg, const MPConvStack *const mpstack,
|
||||
? tv_list_last(v.data.l.list)
|
||||
: TV_LIST_ITEM_PREV(v.data.l.list,
|
||||
v.data.l.li));
|
||||
int idx = (int)tv_list_idx_of_item(v.data.l.list, li);
|
||||
int idx = (li == NULL
|
||||
? 0
|
||||
: (int)tv_list_idx_of_item(v.data.l.list, li));
|
||||
if (v.type == kMPConvList
|
||||
|| li == NULL
|
||||
|| (TV_LIST_ITEM_TV(li)->v_type != VAR_LIST
|
||||
|
@@ -2680,6 +2680,7 @@ static bool color_cmdline(CmdlineInfo *colored_ccline)
|
||||
.end = end,
|
||||
.attr = attr,
|
||||
}));
|
||||
i++;
|
||||
});
|
||||
if (prev_end < colored_ccline->cmdlen) {
|
||||
kv_push(ccline_colors->colors, ((CmdlineColorChunk) {
|
||||
|
Reference in New Issue
Block a user