mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
refactor(messages): fold msg_outtrans_attr into msg_outtrans
problem: there are too many different functions in message.c solution: fold some of the functions into themselves
This commit is contained in:
@@ -3400,7 +3400,7 @@ static void draw_cmdline(int start, int len)
|
||||
}
|
||||
}
|
||||
|
||||
msg_outtrans_len(arshape_buf, newlen);
|
||||
msg_outtrans_len(arshape_buf, newlen, 0);
|
||||
} else {
|
||||
draw_cmdline_no_arabicshape:
|
||||
if (kv_size(ccline.last_colors.colors)) {
|
||||
@@ -3410,12 +3410,10 @@ draw_cmdline_no_arabicshape:
|
||||
continue;
|
||||
}
|
||||
const int chunk_start = MAX(chunk.start, start);
|
||||
msg_outtrans_len_attr(ccline.cmdbuff + chunk_start,
|
||||
chunk.end - chunk_start,
|
||||
chunk.attr);
|
||||
msg_outtrans_len(ccline.cmdbuff + chunk_start, chunk.end - chunk_start, chunk.attr);
|
||||
}
|
||||
} else {
|
||||
msg_outtrans_len(ccline.cmdbuff + start, len);
|
||||
msg_outtrans_len(ccline.cmdbuff + start, len, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user