aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-09-23 18:29:19 +0200
committerGitHub <noreply@github.com>2023-09-23 18:29:19 +0200
commit93d27ea578a2d25fff1ec892d84f5e9a609eb377 (patch)
tree2628c4e354f30387a81cefde050663c0975d43bf /src/nvim/message.c
parentfcdfbb430377a82921cf1a72df97bce7952733e8 (diff)
parent3a7cb72dcbe4aaaed47999ab5afaf3d1cb8d4df8 (diff)
downloadrneovim-93d27ea578a2d25fff1ec892d84f5e9a609eb377.tar.gz
rneovim-93d27ea578a2d25fff1ec892d84f5e9a609eb377.tar.bz2
rneovim-93d27ea578a2d25fff1ec892d84f5e9a609eb377.zip
Merge pull request #25268 from bfredl/grid_line
refactor(grid): properly namespace and separate stateful grid functions
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r--src/nvim/message.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index 81760dd017..98e5a231b8 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -2004,7 +2004,7 @@ static const char *screen_puts_mbyte(const char *s, int l, int attr)
return s;
}
- grid_puts_len(&msg_grid_adj, s, l, msg_row, msg_col, attr);
+ grid_puts(&msg_grid_adj, s, l, msg_row, msg_col, attr);
if (cmdmsg_rl) {
msg_col -= cw;
if (msg_col == 0) {
@@ -2705,7 +2705,7 @@ static void t_puts(int *t_col, const char *t_s, const char *s, int attr)
attr = hl_combine_attr(HL_ATTR(HLF_MSG), attr);
// Output postponed text.
msg_didout = true; // Remember that line is not empty.
- grid_puts_len(&msg_grid_adj, t_s, (int)(s - t_s), msg_row, msg_col, attr);
+ grid_puts(&msg_grid_adj, t_s, (int)(s - t_s), msg_row, msg_col, attr);
msg_col += *t_col;
*t_col = 0;
// If the string starts with a composing character don't increment the
@@ -3091,9 +3091,9 @@ void msg_moremsg(int full)
char *s = _("-- More --");
attr = hl_combine_attr(HL_ATTR(HLF_MSG), HL_ATTR(HLF_M));
- grid_puts(&msg_grid_adj, s, Rows - 1, 0, attr);
+ grid_puts(&msg_grid_adj, s, -1, Rows - 1, 0, attr);
if (full) {
- grid_puts(&msg_grid_adj, _(" SPACE/d/j: screen/page/line down, b/u/k: up, q: quit "),
+ grid_puts(&msg_grid_adj, _(" SPACE/d/j: screen/page/line down, b/u/k: up, q: quit "), -1,
Rows - 1, vim_strsize(s), attr);
}
}