mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 06:58:35 +00:00
vim-patch:8.1.0701: sign message not translated and inconsistent spacing
Problem: Sign message not translated and inconsistent spacing.
Solution: Add _() for translation. Add a space. (Ken Takata) Also use
MSG_BUF_LEN instead of BUFSIZ.
d730c8e297
This commit is contained in:
@@ -594,8 +594,8 @@ void sign_list_placed(buf_T *rbuf, char_u *sign_group)
|
|||||||
{
|
{
|
||||||
buf_T *buf;
|
buf_T *buf;
|
||||||
signlist_T *sign;
|
signlist_T *sign;
|
||||||
char lbuf[BUFSIZ];
|
char lbuf[MSG_BUF_LEN];
|
||||||
char group[BUFSIZ];
|
char group[MSG_BUF_LEN];
|
||||||
|
|
||||||
MSG_PUTS_TITLE(_("\n--- Signs ---"));
|
MSG_PUTS_TITLE(_("\n--- Signs ---"));
|
||||||
msg_putchar('\n');
|
msg_putchar('\n');
|
||||||
@@ -606,7 +606,7 @@ void sign_list_placed(buf_T *rbuf, char_u *sign_group)
|
|||||||
}
|
}
|
||||||
while (buf != NULL && !got_int) {
|
while (buf != NULL && !got_int) {
|
||||||
if (buf->b_signlist != NULL) {
|
if (buf->b_signlist != NULL) {
|
||||||
vim_snprintf(lbuf, BUFSIZ, _("Signs for %s:"), buf->b_fname);
|
vim_snprintf(lbuf, MSG_BUF_LEN, _("Signs for %s:"), buf->b_fname);
|
||||||
MSG_PUTS_ATTR(lbuf, HL_ATTR(HLF_D));
|
MSG_PUTS_ATTR(lbuf, HL_ATTR(HLF_D));
|
||||||
msg_putchar('\n');
|
msg_putchar('\n');
|
||||||
}
|
}
|
||||||
@@ -618,12 +618,13 @@ void sign_list_placed(buf_T *rbuf, char_u *sign_group)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (sign->group != NULL) {
|
if (sign->group != NULL) {
|
||||||
vim_snprintf(group, BUFSIZ, " group=%s", sign->group->sg_name);
|
vim_snprintf(group, MSG_BUF_LEN, _(" group=%s"),
|
||||||
|
sign->group->sg_name);
|
||||||
} else {
|
} else {
|
||||||
group[0] = '\0';
|
group[0] = '\0';
|
||||||
}
|
}
|
||||||
vim_snprintf(lbuf, BUFSIZ, _(" line=%ld id=%d%s name=%s "
|
vim_snprintf(lbuf, MSG_BUF_LEN,
|
||||||
"priority=%d"),
|
_(" line=%ld id=%d%s name=%s priority=%d"),
|
||||||
(long)sign->lnum, sign->id, group,
|
(long)sign->lnum, sign->id, group,
|
||||||
sign_typenr2name(sign->typenr), sign->priority);
|
sign_typenr2name(sign->typenr), sign->priority);
|
||||||
MSG_PUTS(lbuf);
|
MSG_PUTS(lbuf);
|
||||||
|
Reference in New Issue
Block a user